summaryrefslogtreecommitdiff
path: root/csum-file.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2009-02-19 19:10:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-02-20 06:47:39 (GMT)
commit024aa7d8d5114f76e616a0ed8ddcf3b463ff2c14 (patch)
tree5be882a523e0185a8114e44689469d85ffa3eca9 /csum-file.c
parent4fcc86b07db26da17f17af0fd777cab78fcaaf4c (diff)
downloadgit-024aa7d8d5114f76e616a0ed8ddcf3b463ff2c14.zip
git-024aa7d8d5114f76e616a0ed8ddcf3b463ff2c14.tar.gz
git-024aa7d8d5114f76e616a0ed8ddcf3b463ff2c14.tar.bz2
system_path(): simplify using strip_path_suffix(), and add suffix "git"
At least for the author of this patch, the logic in system_path() was too hard to understand. Using the function strip_path_suffix() documents the idea of the code better. The real change is to add the suffix "git", so that a runtime prefix will be computed correctly even when the executable was called in /git/ as is the case in msysGit (Windows insists to search the current directory before the PATH when looking for an executable). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Acked-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'csum-file.c')
0 files changed, 0 insertions, 0 deletions