Sha256: 5f070de2d6ff76d16d6b44f6787d24558308c28929c69d61653c608aa87c1be2

Contents?: true

Size: 303 Bytes

Versions: 12

Compression:

Stored size: 303 Bytes

Contents

while read oldrev newrev refname
do
  # Reset so we dont have unstaged changes... and then checkout the pushed ref
  echo "------> [blazing] Doing a hard reset and checking out $refname since thats what you pushed"
  git reset --hard HEAD
  git checkout $refname
done

unset GIT_DIR
unset GIT_WORK_TREE

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
blazing-0.5.0 lib/blazing/templates/hook/git-reset.erb
blazing-0.4.2 lib/blazing/templates/hook/git-reset.erb
blazing-0.4.1 lib/blazing/templates/hook/git-reset.erb
blazing-0.4.0 lib/blazing/templates/hook/git-reset.erb
blazing-0.4.0.beta3 lib/blazing/templates/hook/git-reset.erb
blazing-0.4.0.beta2 lib/blazing/templates/hook/git-reset.erb
blazing-0.4.0.beta1 lib/blazing/templates/hook/git-reset.erb
blazing-0.3.0 lib/blazing/templates/hook/git-reset.erb
blazing-0.2.14 lib/blazing/templates/hook/git-reset.erb
blazing-0.2.13 lib/blazing/templates/hook/git-reset.erb
blazing-0.2.12 lib/blazing/templates/hook/git-reset.erb
blazing-0.2.11 lib/blazing/templates/hook/git-reset.erb