Johannes Sixt
a893346930
mv: let 'git mv file no-such-dir/' error out on Windows, too
...
The previous commit c57f628 (mv: let 'git mv file no-such-dir/' error out)
relies on that rename("file", "no-such-dir/") fails if the directory does not
exist (note the trailing slash). This does not work as expected on Windows:
This rename() call does not fail, but renames "file" to "no-such-dir" (not to
"no-such-dir/file"). Insert an explicit check for this case to force an error.
This changes the error message from
$ git mv file no-such-dir/
fatal: renaming 'file' failed: Not a directory
to
$ git mv file no-such-dir/
fatal: destination directory does not exist, source=file, destination=no-such-dir/
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-01-10 11:28:12 -08:00
..
2013-09-17 11:42:34 -07:00
2013-08-05 11:32:19 -07:00
2013-02-20 13:42:22 -08:00
2013-08-05 11:32:19 -07:00
2013-10-28 09:57:36 -07:00
2013-11-18 12:24:49 -08:00
2013-10-23 13:21:31 -07:00
2013-09-04 12:39:03 -07:00
2013-09-20 12:37:32 -07:00
2013-07-13 10:19:37 -07:00
2013-10-30 12:10:56 -07:00
2013-10-30 12:10:16 -07:00
2013-09-09 14:36:15 -07:00
2013-10-18 13:49:51 -07:00
2012-08-20 12:23:16 -07:00
2013-03-25 15:01:22 -07:00
2013-09-20 12:36:32 -07:00
2013-09-12 14:41:00 -07:00
2013-04-10 13:27:26 -07:00
2013-10-31 13:47:35 -07:00
2013-07-15 10:56:08 -07:00
2013-07-15 10:56:08 -07:00
2013-10-31 13:48:09 -07:00
2013-09-17 11:42:31 -07:00
2013-09-09 14:30:29 -07:00
2013-09-20 12:36:12 -07:00
2013-04-26 11:10:47 -07:00
2013-11-01 07:38:41 -07:00
2013-09-17 11:37:33 -07:00
2013-10-30 12:10:27 -07:00
2013-10-23 13:21:31 -07:00
2013-08-07 08:30:55 -07:00
2013-07-21 22:51:29 -07:00
2013-09-17 11:37:33 -07:00
2012-08-20 12:23:17 -07:00
2013-10-23 13:21:31 -07:00
2013-09-11 15:03:28 -07:00
2012-09-07 10:58:35 -07:00
2013-09-09 14:36:15 -07:00
2012-12-07 14:10:56 -08:00
2013-03-02 22:52:44 -08:00
2013-08-05 11:32:19 -07:00
2013-08-05 11:32:19 -07:00
2013-07-09 09:12:48 -07:00
2013-05-06 22:17:00 -07:00
2013-10-31 11:12:24 -07:00
2012-08-20 12:23:18 -07:00
2014-01-10 11:28:12 -08:00
2013-08-07 08:30:30 -07:00
2013-08-05 11:32:19 -07:00
2013-10-23 13:21:26 -07:00
2012-12-13 11:13:44 -08:00
2013-05-01 15:33:11 -07:00
2013-05-28 09:20:54 -07:00
2013-06-06 12:17:52 -07:00
2013-09-11 14:56:59 -07:00
2013-10-16 10:26:39 -07:00
2013-09-20 12:36:12 -07:00
2013-09-20 12:36:12 -07:00
2013-10-14 11:07:29 -07:00
2013-09-17 13:34:57 -07:00
2013-09-24 23:35:24 -07:00
2013-07-15 10:56:07 -07:00
2013-10-25 14:54:18 -07:00
2013-10-16 10:26:39 -07:00
2013-09-04 12:39:03 -07:00
2013-10-23 13:21:35 -07:00
2013-09-13 12:37:35 -07:00
2013-08-02 16:07:45 -07:00
2013-09-24 23:29:00 -07:00
2013-08-05 11:32:19 -07:00
2013-08-05 11:32:19 -07:00
2013-09-06 13:33:17 -07:00
2013-10-16 10:26:39 -07:00
2013-09-20 12:36:12 -07:00
2013-07-30 08:10:35 -07:00
2013-09-09 14:36:15 -07:00
2013-09-20 12:36:12 -07:00
2012-08-22 10:58:29 -07:00
2013-02-20 13:42:22 -08:00
2012-08-22 10:58:29 -07:00
2013-02-14 09:30:04 -08:00
2012-08-22 10:58:29 -07:00