diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-11-29 12:22:13 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-11-29 12:22:13 -0800 |
commit | 95c2b13a5fc06db6556def93843653e948e71e4b (patch) | |
tree | f6f1b90a0ce387460e3bb28a6f0399666f14a9b1 /git.c | |
parent | 061eeff104e74e50a6ddeed5b4a5fb382767742f (diff) | |
parent | 6854a8f5c9ecf32f5bd85020e77d48d3ffdf48fc (diff) | |
download | git-95c2b13a5fc06db6556def93843653e948e71e4b.tar.gz |
Merge branch 'jk/common-main'
Fix for a small regression in a topic already in 'master'.
* jk/common-main:
common-main: stop munging argv[0] path
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -654,6 +654,11 @@ int cmd_main(int argc, const char **argv) cmd = argv[0]; if (!cmd) cmd = "git-help"; + else { + const char *slash = find_last_dir_sep(cmd); + if (slash) + cmd = slash + 1; + } trace_command_performance(argv); |