packed objects: minor cleanup
[gitweb.git] / git-checkout.sh
index bd7f007307d458efec2cdd333dc9028402482f57..6a87c717e9cb8f0358ceca85ec7df8cf44f625d5 100755 (executable)
@@ -164,6 +164,10 @@ else
        esac
        exit 0
     )
+    saved_err=$?
+    test "$new" = "$old" ||
+       git diff-index --name-status "$new"
+    (exit $saved_err)
 fi
 
 #