diff options
author | Jonathan Nieder <jrnieder@uchicago.edu> | 2008-07-18 01:32:37 -0500 |
---|---|---|
committer | Rocco Rutte <pdmef@gmx.net> | 2008-07-31 07:18:16 +0200 |
commit | 8be4e6b3d02c928456f8ca58c5ea01a2fbf69a5d (patch) | |
tree | 739f3600eb351ab2632eab649174beac94688131 /hg-reset.sh | |
parent | 205c76749a2aba3d14d7cd35ac3d484b88eccc8e (diff) | |
download | hg-fast-export-8be4e6b3d02c928456f8ca58c5ea01a2fbf69a5d.tar.gz |
hg-fast-export: work still if git-commands are not in PATH
In git 1.6.0, most git tools with a dash in the name will no
longer be installed in $bindir. This patch makes hg-fast-export
use the "git <command>" form so it will work even if "git" is
the only piece of git machinery in the user's PATH.
On the other hand, the "git <command>" form does not help for
sourcing a shell script (with "."). So use the full path to
source "git-sh-setup".
Signed-off-by: Jonathan Nieder <jrnieder@uchicago.edu>
Diffstat (limited to 'hg-reset.sh')
-rwxr-xr-x | hg-reset.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hg-reset.sh b/hg-reset.sh index 2b7b775..8d1730c 100755 --- a/hg-reset.sh +++ b/hg-reset.sh @@ -23,7 +23,7 @@ Options: -r Mercurial repository to use " -. git-sh-setup +. "$(git --exec-path)/git-sh-setup" cd_to_toplevel while case "$#" in 0) break ;; esac |