public
Description: Simple shell script to import svn:externals into a local git-svn repository
Homepage:
Clone URL: git://github.com/andrep/git-svn-clone-externals.git
git-svn-clone-externals / git-svn-externals-check
100755 20 lines (18 sloc) 0.471 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
 
for dir in *; do
if [ -d $dir ]; then
cd $dir
       STATUS=$(git status)
       UNPUSHED=$(git-svn-check-unpushed)
       if [ $(echo $STATUS|grep -c "clean") -lt 1 -o \
$(echo $UNPUSHED|grep -c "No unpushed") -lt 1 ]; then
echo '>>>>>>>>>>>>>>>>' $dir '<<<<<<<<<<<<<<<<'
git status
git-svn-check-unpushed
echo '----------------------------------------'
       else
echo $dir 'is clean'
       fi
cd ..
   fi
done