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.1.0 templates/hook/git-reset.erb
pushapp-0.0.6 templates/hook/git-reset.erb
pushapp-0.0.5 templates/hook/git-reset.erb
pushapp-0.0.4 templates/hook/git-reset.erb
pushapp-0.0.3 templates/hook/git-reset.erb
pushapp-0.0.2 templates/hook/git-reset.erb
pushapp-0.0.1 templates/hook/git-reset.erb