]> asedeno.scripts.mit.edu Git - git.git/blobdiff - wrapper.c
Merge branch 'sr/remote-helper-export'
[git.git] / wrapper.c
index 4017bff6bb3f658ed745da4f9a3a7a79fb38fb08..10a6750795b287beabd50561402ffa8867f3e283 100644 (file)
--- a/wrapper.c
+++ b/wrapper.c
@@ -333,3 +333,8 @@ int rmdir_or_warn(const char *file)
 {
        return warn_if_unremovable("rmdir", file, rmdir(file));
 }
+
+int remove_or_warn(unsigned int mode, const char *file)
+{
+       return S_ISGITLINK(mode) ? rmdir_or_warn(file) : unlink_or_warn(file);
+}