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
diff options
context:
space:
mode:
Diffstat (limited to 'common-main.c')
-rw-r--r--common-main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common-main.c b/common-main.c
index 2b96bbf436..57c912a78e 100644
--- a/common-main.c
+++ b/common-main.c
@@ -1,4 +1,5 @@
#include "git-compat-util.h"
+#include "exec_cmd.h"
int main(int argc, char **av)
{
@@ -8,5 +9,7 @@ int main(int argc, char **av)
*/
const char **argv = (const char **)av;
+ argv[0] = git_extract_argv0_path(argv[0]);
+
return cmd_main(argc, argv);
}