diff options
author | Junio C Hamano <junkio@cox.net> | 2006-12-28 16:32:05 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-28 18:37:33 -0800 |
commit | e19b9ddab3fb7bd3bf6ed6629d3f014722e57a31 (patch) | |
tree | 06bda534c6cec80affc50c91dff18c89720d5e9d /refs.c | |
parent | 04ece59399ba159d82cadec8d39f8ce13c12d569 (diff) | |
download | git-e19b9ddab3fb7bd3bf6ed6629d3f014722e57a31.tar.gz |
core.logallrefupdates: log remotes/ tracking branches.
Not using reflog for tags/ was very sensible; not giving reflog
for the remotes/ was not.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -925,7 +925,8 @@ static int log_ref_write(struct ref_lock *lock, const char *committer; if (log_all_ref_updates && - !strncmp(lock->ref_name, "refs/heads/", 11)) { + (!strncmp(lock->ref_name, "refs/heads/", 11) || + !strncmp(lock->ref_name, "refs/remotes/", 13))) { if (safe_create_leading_directories(lock->log_file) < 0) return error("unable to create directory for %s", lock->log_file); |