From a7c0da7eca4557a1068d7c1b0a072e9e875d3c50 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Thu, 11 Sep 2014 11:43:44 -0600 Subject: [PATCH] Fix ROOT if hg-fast-export is in PATH dirname $0 will return "." if hg-fast-export is in the path. Use "type -p" to find the full path to the script. --- hg-fast-export.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hg-fast-export.sh b/hg-fast-export.sh index c052e1b..e44d76d 100755 --- a/hg-fast-export.sh +++ b/hg-fast-export.sh @@ -3,7 +3,7 @@ # Copyright (c) 2007, 2008 Rocco Rutte and others. # License: MIT -ROOT="`dirname "$0"`" +ROOT="`dirname "$(type -p $0)"`" REPO="" PFX="hg2git" SFX_MAPPING="mapping" -- 2.11.0