mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-21 07:38:19 +08:00
Fix setting up an empty repo
Fixes APP-EQ
This commit is contained in:
@ -194,6 +194,15 @@ class GitNoteRepository {
|
||||
assert(branchConfig.name != null);
|
||||
assert(branchConfig.merge != null);
|
||||
|
||||
var remoteRef = await repo.remoteBranch(
|
||||
branchConfig.remote,
|
||||
branchConfig.trackingBranch(),
|
||||
);
|
||||
if (remoteRef == null) {
|
||||
Log.i('Remote has no refs');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
await _gitRepo.merge(
|
||||
branch: branchConfig.remoteTrackingBranch(),
|
||||
|
Reference in New Issue
Block a user