X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=scripts%2Fgit-hg-sub-import;h=41617d1058c81431031f3ff655d9edf5c522bbad;hb=05fb69883a618714e6deed36ab1d526fd81716e0;hp=97895786c607c93de5657f34ba6e48c281d1903b;hpb=d27635bbe5a84fcd1b9f1ac5deca44f46e7d0892;p=hvutilities.git diff --git a/scripts/git-hg-sub-import b/scripts/git-hg-sub-import index 9789578..41617d1 100755 --- a/scripts/git-hg-sub-import +++ b/scripts/git-hg-sub-import @@ -43,7 +43,7 @@ subrepo_find_branch() { local id="${2}" local rev="${3}" - pushd "${src}" + pushd "${src}" 1> /dev/null branch=$(hg log -r ${rev} | grep "branch:" | sed "s/branch:\ *//") @@ -60,7 +60,7 @@ subrepo_find_branch() { echo " num: ${num}" fi - popd + popd 1> /dev/null } if [ "x${1}" = "x--help" ]; then @@ -139,10 +139,6 @@ while read sub; do # Ignore subrepo in top-level git repository echo "${dest}" >> .gitignore fi - else - pushd "${dest}" - git pull - popd fi fi done < .hgsub