[PATCH] RPM spec updates.
[git/dscho.git] / git-reset-script
blobb6476edc30b9e8f7c991ebd9e25b530ec49b8253
1 #!/bin/sh
2 . git-sh-setup-script || die "Not a git archive"
3 rev=$(git-rev-parse --revs-only --verify --default HEAD "$@") || exit
4 rev=$(git-rev-parse --revs-only --verify $rev^0) || exit
5 git-read-tree --reset "$rev" && echo "$rev" > "$GIT_DIR/HEAD"
6 git-update-cache --refresh
7 rm -f "$GIT_DIR/MERGE_HEAD"