Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2006-11-06 01:22:15 +0300
committerJunio C Hamano <junkio@cox.net>2006-11-06 05:35:08 +0300
commit49b8b2926fdcc4322445f0a3bda459e81cd98e9a (patch)
tree3e62dd3c87c69cc57bb3f3ff4878af9274e96e10 /path.c
parent6c2f207b2316149ee8dfaf026e4a869ff9ab42f7 (diff)
Fix git-runstatus for repositories containing a file named HEAD
The wt_status_print_updated() and wt_status_print_untracked() routines call setup_revisions() with 'HEAD' being the reference to the tip of the current branch. However, setup_revisions() gets confused if the branch also contains a file named 'HEAD' resulting in a fatal error. Instead, don't pass an argv to setup_revisions() at all; simply give it no arguments, and make 'HEAD' the default revision. Bug noticed by Rocco Rutte <pdmef@gmx.net>. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'path.c')
0 files changed, 0 insertions, 0 deletions