gitrefresh

Easily export, reinitialize and update all git repositories in a file hierarchy
git clone git://git.defalsify.org/gitrefresh.git
Info | Log | Files | Refs | README | LICENSE

test_refresh.sh (359B)


      1 . tests/test_list.sh
      2 
      3 hl=$(mktemp)
      4 
      5 pushd $ts
      6 for d in ${ds[@]}; do
      7 	pushd $d
      8 	uuidgen > data.txt	
      9 	git commit -a -m "more commit"
     10 	git rev-parse HEAD >> $hl
     11 	popd
     12 done
     13 popd
     14 
     15 bash ./gitrefresh.sh update $td
     16 
     17 hr=$(mktemp)
     18 pushd $td
     19 for d in ${ds[@]}; do
     20 	pushd $d
     21 	git remote update
     22 	git pull --ff-only
     23 	git rev-parse HEAD >> $hr
     24 	popd
     25 done
     26 popd
     27 
     28 diff $hl $hr