mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
run-command: declare the git_shell_path() function globally
The intention is to use it in `git var GIT_SHELL_PATH`, therefore we need this function to stop being file-local only. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
92fe7c7d42
commit
877da5e208
@@ -274,7 +274,7 @@ int sane_execvp(const char *file, char * const argv[])
|
||||
return -1;
|
||||
}
|
||||
|
||||
static char *git_shell_path(void)
|
||||
char *git_shell_path(void)
|
||||
{
|
||||
#ifndef GIT_WINDOWS_NATIVE
|
||||
return xstrdup(SHELL_PATH);
|
||||
|
||||
Reference in New Issue
Block a user