Merge pull request #37 from ottxor/master
authorfrej <frej.drejhammar@gmail.com>
Fri, 19 Sep 2014 11:39:31 +0000 (13:39 +0200)
committerfrej <frej.drejhammar@gmail.com>
Fri, 19 Sep 2014 11:39:31 +0000 (13:39 +0200)
Fix ROOT if hg-fast-export is in PATH

hg-fast-export.sh

index c052e1b..e44d76d 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others.
 # License: MIT <http://www.opensource.org/licenses/mit-license.php>
 
-ROOT="`dirname "$0"`"
+ROOT="`dirname "$(type -p $0)"`"
 REPO=""
 PFX="hg2git"
 SFX_MAPPING="mapping"