mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-20 18:33:35 +00:00
commit
dd8a2070ce
@ -131,7 +131,7 @@ int gitfo_isdir(const char *path)
|
||||
return git__throw(GIT_ENOTFOUND, "%s does not exist", path);
|
||||
|
||||
if (!S_ISDIR(st.st_mode))
|
||||
return git__throw(GIT_ENOTFOUND, "%s is not a file", path);
|
||||
return git__throw(GIT_ENOTFOUND, "%s is a file", path);
|
||||
|
||||
return GIT_SUCCESS;
|
||||
}
|
||||
|
@ -644,7 +644,7 @@ BEGIN_TEST(rename5, "can force-rename a reference with the name of an existing r
|
||||
/* An existing reference... */
|
||||
must_pass(git_reference_lookup(&looked_up_ref, repo, packed_head_name));
|
||||
|
||||
/* Can not be renamed to the name of another existing reference. */
|
||||
/* Can be force-renamed to the name of another existing reference. */
|
||||
must_pass(git_reference_rename_f(looked_up_ref, packed_test_head_name));
|
||||
|
||||
/* Check we actually renamed it */
|
||||
|
Loading…
Reference in New Issue
Block a user