Code

Documentation: teach stash/pop workflow instead of stash/apply
[git.git] / sha1_file.c
index bd5edd8e657536e60fcb68d427df134c84f816c5..e73cd4fc0ba2daac14f604f1973d1b0658212b26 100644 (file)
@@ -2251,7 +2251,7 @@ int move_temp_to_file(const char *tmpfile, const char *filename)
                        goto out;
                ret = errno;
        }
-       unlink(tmpfile);
+       unlink_or_warn(tmpfile);
        if (ret) {
                if (ret != EEXIST) {
                        return error("unable to write sha1 filename %s: %s\n", filename, strerror(ret));