mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-26 08:36:50 +08:00
createBranch: headHash is auto inferred
Fixes APP-X0
This commit is contained in:
@ -76,9 +76,7 @@ Future<void> cloneRemote({
|
||||
}
|
||||
} else {
|
||||
Log.i("Completing - localBranch diff remote: $branch $remoteBranchName");
|
||||
|
||||
var headRef = await repo.resolveReference(await repo.head());
|
||||
await repo.createBranch(remoteBranchName, hash: headRef.hash);
|
||||
await repo.createBranch(remoteBranchName);
|
||||
await repo.checkoutBranch(remoteBranchName);
|
||||
|
||||
await repo.deleteBranch(branch);
|
||||
|
Reference in New Issue
Block a user