Browse Source

sde-update-tree: enhanced to close package/ from the same URL used to clone $SDEROOT

karasz/new-early
Alejandro Mery 16 years ago
parent
commit
8141f925f7
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      bin/sde-update-tree

+ 5
- 4
bin/sde-update-tree

@ -38,8 +38,6 @@ fi
# load new arguments list # load new arguments list
eval set -- "$options" eval set -- "$options"
GITSERVER="git://git.opensde.net"
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case "$1" in case "$1" in
--help) --help)
@ -136,13 +134,16 @@ update_svn()
# hunt for the roots of the sub-working trees # hunt for the roots of the sub-working trees
# #
baseurl=$( git config remote.origin.url | sed -e 's|/[^/]*$||' )
[ -n "$baseurl" ] || baseurl="git://git.opensde.net/opensde"
echo ".: $baseurl"
for x in . package $( ls -1d package/* target/* 2> /dev/null ); do for x in . package $( ls -1d package/* target/* 2> /dev/null ); do
if [ ! -d "$x" ]; then if [ ! -d "$x" ]; then
case "$x" in case "$x" in
package) package)
echo "$tree/$x:" echo "$tree/$x:"
( git clone --quiet \
"$GITSERVER/opensde/$x-nopast.git" "$x" 2>&1 &&
( git clone "$baseurl/$x-nopast.git" "$x" 2>&1 &&
echo "$x: cloned successfully" echo "$x: cloned successfully"
) | indent_output ) | indent_output
;; ;;

Loading…
Cancel
Save