am: refresh the index at start and --resolved
[git/git.git] / git-am.sh
index 6cdd591..f1a03c9 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
@@ -507,6 +507,8 @@ else
        fi
 fi
 
+git update-index -q --refresh
+
 case "$resolved" in
 '')
        case "$HAS_HEAD" in