]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t7502-status.sh
Merge git://git.kernel.org/pub/scm/gitk/gitk
[git.git] / t / t7502-status.sh
index 269b3341a25f853e14715d747bddd2626fc5fdb6..9ce50cade8981bb5317397c10b0fabeba4893fc8 100755 (executable)
@@ -68,7 +68,7 @@ cat > expect << \EOF
 # Changed but not updated:
 #   (use "git add <file>..." to update what will be committed)
 #
-#      modified:   ../dir1/modified
+#      modified:   modified
 #
 # Untracked files:
 #   (use "git add <file>..." to include in what will be committed)
@@ -88,4 +88,35 @@ test_expect_success 'status with relative paths' '
 
 '
 
+cat > expect << \EOF
+# On branch master
+# Changes to be committed:
+#   (use "git reset HEAD <file>..." to unstage)
+#
+#      new file:   dir2/added
+#
+# Changed but not updated:
+#   (use "git add <file>..." to update what will be committed)
+#
+#      modified:   dir1/modified
+#
+# Untracked files:
+#   (use "git add <file>..." to include in what will be committed)
+#
+#      dir1/untracked
+#      dir2/modified
+#      dir2/untracked
+#      expect
+#      output
+#      untracked
+EOF
+
+test_expect_success 'status without relative paths' '
+
+       git config status.relativePaths false
+       (cd dir1 && git status) > output &&
+       git diff expect output
+
+'
+
 test_done