unpack-trees: fix grammar for untracked files in directories
authorStefan Beller <sbeller@google.com>
Fri, 2 Dec 2016 19:17:41 +0000 (11:17 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Dec 2016 20:17:02 +0000 (12:17 -0800)
Noticed-by: David Turner <dturner@twosigma.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Reviewed-by: David Turner <dturner@twosigma.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7609-merge-co-error-msgs.sh
unpack-trees.c
index 6729cb379fdb16160c79393b96a2f5b3025540f4..85cd971f243bcdbe56481daa5a8a7383976d4dc3 100755 (executable)
@@ -105,7 +105,7 @@ test_expect_success 'not uptodate file porcelain checkout error' '
 '
 
 cat >expect <<\EOF
-error: Updating the following directories would lose untracked files in it:
+error: Updating the following directories would lose untracked files in them:
        rep
        rep2
 
index aea9aa749f2904739b72fef285f148b8b2aa83a8..129a3547dc5be189d4d6ae46d904307195bb6667 100644 (file)
@@ -78,7 +78,7 @@ void setup_unpack_trees_porcelain(struct unpack_trees_options *opts,
                xstrfmt(msg, cmd, cmd);
 
        msgs[ERROR_NOT_UPTODATE_DIR] =
-               _("Updating the following directories would lose untracked files in it:\n%s");
+               _("Updating the following directories would lose untracked files in them:\n%s");
 
        if (!strcmp(cmd, "checkout"))
                msg = advice_commit_before_merge