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