From: Hugo Villeneuve Date: Wed, 31 Jul 2013 17:01:28 +0000 (-0400) Subject: git-hg-sub-import: Élimine messages de pushd/popd X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=05fb69883a618714e6deed36ab1d526fd81716e0;p=hvutilities.git git-hg-sub-import: Élimine messages de pushd/popd --- 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