Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 6 Aug 2007 08:37:10 +0000
(
01:37
-0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 6 Aug 2007 08:37:10 +0000
(
01:37
-0700)
* maint:
apply: remove directory that becomes empty by renaming the last file away
setup.c:verify_non_filename(): don't die unnecessarily while disambiguating
builtin-apply.c
patch
|
blob
|
history
setup.c
patch
|
blob
|
history
raw
(from parent 1:
a76c2ac
)
diff --git
a/builtin-apply.c
b/builtin-apply.c
index 0a0b4a9e3f6550b6a4729e94242811dcb6e8d09a..da270755a7b9ecafa3cb47d9f6947c6dc5b2531c 100644
(file)
--- a/
builtin-apply.c
+++ b/
builtin-apply.c
@@
-2508,7
+2508,7
@@
static void write_out_one_result(struct patch *patch, int phase)
* thing: remove the old, write the new
*/
if (phase == 0)
- remove_file(patch,
0
);
+ remove_file(patch,
patch->is_rename
);
if (phase == 1)
create_file(patch);
}
diff --git
a/setup.c
b/setup.c
index 4945eb3134c3e047f54e51db25cd0aa81d9c47d7..b55b82c99e2f796700ee95abc8bb5a71e01235ab 100644
(file)
--- a/
setup.c
+++ b/
setup.c
@@
-107,7
+107,7
@@
void verify_non_filename(const char *prefix, const char *arg)
if (!lstat(name, &st))
die("ambiguous argument '%s': both revision and filename\n"
"Use '--' to separate filenames from revisions", arg);
- if (errno != ENOENT)
+ if (errno != ENOENT
&& errno != ENOTDIR
)
die("'%s': %s", arg, strerror(errno));
}