projects
/
hvutilities.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d27635b
)
git-hg-sub-import: Élimine messages de pushd/popd
author
Hugo Villeneuve
<hugo@hugovil.com>
Wed, 31 Jul 2013 17:01:28 +0000
(13:01 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Wed, 31 Jul 2013 18:06:47 +0000
(14:06 -0400)
scripts/git-hg-sub-import
patch
|
blob
|
history
diff --git
a/scripts/git-hg-sub-import
b/scripts/git-hg-sub-import
index
9789578
..
41617d1
100755
(executable)
--- 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