Skip to content

Commit

Permalink
Merge branch 'mm/mv-file-to-no-such-dir-with-slash'
Browse files Browse the repository at this point in the history
Finishing touches to do the same on windows.

* mm/mv-file-to-no-such-dir-with-slash:
  mv: let 'git mv file no-such-dir/' error out on Windows, too
  • Loading branch information
Junio C Hamano committed Jan 13, 2014
2 parents a65a53b + a893346 commit 272220f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin/mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
}
} else if (string_list_has_string(&src_for_dst, dst))
bad = _("multiple sources for the same target");
else if (is_dir_sep(dst[strlen(dst) - 1]))
bad = _("destination directory does not exist");
else
string_list_insert(&src_for_dst, dst);

Expand Down

0 comments on commit 272220f

Please sign in to comment.