am --skip: support skipping while on unborn branch
[gitweb.git] / git-am.sh
index c5e139ff336853b706ecc1ef6ce89ebfb0e13548..e0d067c00e6a4405ea59ab51c5e1ce3fbaf80b0c 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
@@ -499,9 +499,7 @@ then
                git read-tree --reset -u $head_tree $head_tree &&
                index_tree=$(git write-tree) &&
                git read-tree -m -u $index_tree $head_tree
-               orig_head=$(cat "$GIT_DIR/ORIG_HEAD")
-               git reset HEAD
-               git update-ref ORIG_HEAD $orig_head
+               git read-tree $head_tree
                ;;
        ,t)
                if test -f "$dotest/rebasing"