author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Sun, 14 Feb 2010 15:44:42 +0000 (22:44 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 14 Feb 2010 21:21:39 +0000 (13:21 -0800) | ||
commit | d06f15d9c0c2b072e5eebf87fa93ee9a899ed642 | |
tree | a8372029772fece69bbd793389e2a886628dfd92 | tree | snapshot |
parent | ed0cb46ebb020234da94a843ca341dde8e9e3911 | commit | diff |
init-db, rev-parse --git-dir: do not append redundant slash
If git_dir already has the trailing slash, don't put another one
before .git. This only happens when git_dir is '/' or 'C:/'
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If git_dir already has the trailing slash, don't put another one
before .git. This only happens when git_dir is '/' or 'C:/'
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-init-db.c | diff | blob | history | |
builtin-rev-parse.c | diff | blob | history |