Skip to content

Commit

Permalink
check_push
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Dec 24, 2017
1 parent 976ad77 commit 1988f41
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions metatool
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ sync() {
while read project
do
pull $project
done
ls $manyrepos_dir |
while read project
do
check_push $project
done
ls $manyrepos_dir |
while read project
do
push $project
done
}
Expand All @@ -29,6 +38,14 @@ pull() {
git subtree pull --prefix=$project $manyrepos_dir/$project $manyrepos_branch
}

check_push() {
project=$1
(
cd $manyrepos_dir/$project
[ "`git status --porcelain`" = "" ]
)
}

push() {
project=$1
git subtree push --prefix=$project $manyrepos_dir/$project $metarepo_branch
Expand Down

0 comments on commit 1988f41

Please sign in to comment.