mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
Do not complain about "no common commits" in an empty repo
If the repo is empty, we know that already, thank you very much. So shut fetch-pack up about that case. Fixes issue 3, too. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -289,7 +289,8 @@ done:
|
||||
}
|
||||
flushes--;
|
||||
}
|
||||
return retval;
|
||||
/* it is no error to fetch into a completely empty repo */
|
||||
return count ? retval : 0;
|
||||
}
|
||||
|
||||
static struct commit_list *complete;
|
||||
|
||||
Reference in New Issue
Block a user