summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dc49308)
raw | patch | inline | side by side (parent: dc49308)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Wed, 2 Jul 2008 17:06:56 +0000 (18:06 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 2 Jul 2008 18:54:22 +0000 (11:54 -0700) |
If the repo is empty, it is obvious that there are no common commits
when fetching from _anywhere_.
So there is no use in saying it in that case, and it can even be
annoying. Therefore suppress the message unilaterally if the repository
is empty prior to the fetch.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
when fetching from _anywhere_.
So there is no use in saying it in that case, and it can even be
annoying. Therefore suppress the message unilaterally if the repository
is empty prior to the fetch.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch-pack.c | patch | blob | history |
diff --git a/builtin-fetch-pack.c b/builtin-fetch-pack.c
index f4dbcf069ee8e5226d52c9c2194a8ed20ed65a34..2175c6d0d694d12838fc8a9ce7a3cca78a48ed59 100644 (file)
--- a/builtin-fetch-pack.c
+++ b/builtin-fetch-pack.c
}
flushes--;
}
- return retval;
+ /* it is no error to fetch into a completely empty repo */
+ return count ? retval : 0;
}
static struct commit_list *complete;