Mercurial > hg > soundsoftware-site
comparison extra/fast-export/hg-fast-export.sh @ 1567:3ad53f43483d live
Update hg-fast-export to current version (with fix-broken-bare upstream branch) for compatibility with current git
author | Chris Cannam |
---|---|
date | Mon, 10 Oct 2016 12:56:28 +0100 |
parents | e9e55585ebf2 |
children |
comparison
equal
deleted
inserted
replaced
1566:ac2e4a54a6a6 | 1567:3ad53f43483d |
---|---|
46 echo "usage: $(basename "$0") $USAGE" | 46 echo "usage: $(basename "$0") $USAGE" |
47 echo "" | 47 echo "" |
48 echo "$LONG_USAGE" | 48 echo "$LONG_USAGE" |
49 exit 0 | 49 exit 0 |
50 esac | 50 esac |
51 . "$(git --exec-path)/git-sh-setup" | 51 |
52 cd_to_toplevel | 52 IS_BARE=$(git rev-parse --is-bare-repository) \ |
53 || (echo "Could not find git repo" ; exit 1) | |
54 if test "z$IS_BARE" != ztrue; then | |
55 # This is not a bare repo, cd to the toplevel | |
56 TOPLEVEL=$(git rev-parse --show-toplevel) \ | |
57 || (echo "Could not find git repo toplevel" ; exit 1) | |
58 cd $TOPLEVEL || exit 1 | |
59 fi | |
60 GIT_DIR=$(git rev-parse --git-dir) || (echo "Could not find git repo" ; exit 1) | |
53 | 61 |
54 while case "$#" in 0) break ;; esac | 62 while case "$#" in 0) break ;; esac |
55 do | 63 do |
56 case "$1" in | 64 case "$1" in |
57 -r|--r|--re|--rep|--repo) | 65 -r|--r|--re|--rep|--repo) |