From 05fb69883a618714e6deed36ab1d526fd81716e0 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 31 Jul 2013 13:01:28 -0400 Subject: [PATCH] =?utf8?q?git-hg-sub-import:=20=C3=89limine=20messages=20d?= =?utf8?q?e=20pushd/popd?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- scripts/git-hg-sub-import | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 -- 2.20.1