Sha256: 090be7a3003ec3008ceda239a588fde7fd8803e5de7679e7922223e13a9af8f5

Contents?: true

Size: 337 Bytes

Versions: 27

Compression:

Stored size: 337 Bytes

Contents

while read oldrev newrev refname
do
  # Reset so we dont have unstaged changes... and then checkout the pushed ref
  <%= info "Doing a hard reset and checking out #\{ARGV[0]\} since thats what you pushed" %> $refname
  git reset --hard HEAD <%= colorize %>
  git checkout $refname <%= colorize %>
done

unset GIT_DIR
unset GIT_WORK_TREE

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
pushapp-0.2.10 templates/hook/git-reset.erb
pushapp-0.2.9 templates/hook/git-reset.erb
pushapp-0.2.8 templates/hook/git-reset.erb
pushapp-0.2.7 templates/hook/git-reset.erb
pushapp-0.2.6 templates/hook/git-reset.erb
pushapp-0.2.5 templates/hook/git-reset.erb
pushapp-0.2.4 templates/hook/git-reset.erb
pushapp-0.2.3 templates/hook/git-reset.erb
pushapp-0.2.2 templates/hook/git-reset.erb
pushapp-0.2.1 templates/hook/git-reset.erb
pushapp-0.2.0 templates/hook/git-reset.erb
pushapp-0.1.9 templates/hook/git-reset.erb
pushapp-0.1.8 templates/hook/git-reset.erb
pushapp-0.1.7 templates/hook/git-reset.erb
pushapp-0.1.6 templates/hook/git-reset.erb
pushapp-0.1.5 templates/hook/git-reset.erb
pushapp-0.1.4 templates/hook/git-reset.erb
pushapp-0.1.3 templates/hook/git-reset.erb
pushapp-0.1.2 templates/hook/git-reset.erb
pushapp-0.1.1 templates/hook/git-reset.erb