Skip to content

Commit

Permalink
Handle the case in which the path is not absolute.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Jun 5, 2024
1 parent 7a76710 commit 0cedaf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alibuild_helpers/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def git(args, directory=".", check=True, prompt=True):
args=" ".join(map(quote, args)),
# GIT_TERMINAL_PROMPT is only supported in git 2.3+.
prompt_var="GIT_TERMINAL_PROMPT=0" if not prompt else "",
directory_safe_var="GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=safe.directory GIT_CONFIG_VALUE_0={}".format(directory) if directory else "",
directory_safe_var="GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=safe.directory GIT_CONFIG_VALUE_0=$PWD" if directory else "",
), timeout=GIT_COMMAND_TIMEOUT_SEC)
if check and err != 0:
raise SCMError("Error {} from git {}: {}".format(err, " ".join(args), output))
Expand Down

0 comments on commit 0cedaf1

Please sign in to comment.