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:
Johannes Schindelin
2007-09-19 16:22:00 +01:00
parent 416488563e
commit 74c2a08ef9

View File

@@ -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;