From 4feaf032d3c2e144e0dca61e004481164dace56a Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Wed, 24 Jan 2007 09:37:48 +0100 Subject: [PATCH] Do not complain if no committer identifier can be written to the reflog. git clone leaves a half-baked clone without the HEAD ref and no working tree, but with the full repository, if it cannot find the committer information in the GECOS field. For a first-time user this may be puzzling since git clone may be the very first git command to be tried. The reflog is entirely local information, and the warning about the missing information is printed anyway, so there is a hint for the user how to fill it in. --- refs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refs.c b/refs.c index 7d858637c4..d6c717f1c9 100644 --- a/refs.c +++ b/refs.c @@ -958,7 +958,7 @@ static int log_ref_write(struct ref_lock *lock, lock->log_file, strerror(errno)); } - committer = git_committer_info(1); + committer = git_committer_info(0); if (msg) { maxlen = strlen(committer) + strlen(msg) + 2*40 + 5; logrec = xmalloc(maxlen); -- 2.11.4.GIT