git-hg-sub-import: Élimine messages de pushd/popd
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 31 Jul 2013 17:01:28 +0000 (13:01 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 31 Jul 2013 18:06:47 +0000 (14:06 -0400)
scripts/git-hg-sub-import

index 9789578..41617d1 100755 (executable)
@@ -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