Browse Source

Update the GIT helper scripts

pull/1/head
Timothy Pearson 11 years ago
parent
commit
a2610d4e32
  1. 4
      commit_all_submodules
  2. 3
      switch_all_submodules_to_head_and_clean

4
commit_all_submodules

@ -21,3 +21,7 @@ read -p "Enter your commit message []: " -e commitmessage
git submodule foreach "git commit -a -m \"$commitmessage\" || true"
git submodule foreach "sed -i \"s/system@scm\.trinitydesktop\.org/$gituser@scm\.trinitydesktop\.org/g\" .git/config"
git submodule foreach "git push origin master || true"
git commit -a -m \"$commitmessage\" || true
sed -i \"s/system@scm\.trinitydesktop\.org/$gituser@scm\.trinitydesktop\.org/g\" .git/config
git push origin master || true

3
switch_all_submodules_to_head_and_clean

@ -23,6 +23,9 @@ if [[ ! -e "$THISSCRIPT" ]]; then
exit 1
fi
git reset --hard HEAD
git clean -dxf
git pull
git reset --hard HEAD
git clean -dxf

Loading…
Cancel
Save