Merge branch 'rj/path-cleanup'
* rj/path-cleanup: Call mkpathdup() rather than xstrdup(mkpath(...)) Call git_pathdup() rather than xstrdup(git_path("...")) path.c: Use vsnpath() in the implementation of git_path() path.c: Don't discard the return value of vsnpath() path.c: Remove the 'git_' prefix from a file scope function
This commit is contained in:
@ -197,7 +197,7 @@ static int delete_branches(int argc, const char **argv, int force, int kinds,
|
||||
|
||||
free(name);
|
||||
|
||||
name = xstrdup(mkpath(fmt, bname.buf));
|
||||
name = mkpathdup(fmt, bname.buf);
|
||||
if (read_ref(name, sha1)) {
|
||||
error(remote_branch
|
||||
? _("remote branch '%s' not found.")
|
||||
|
Reference in New Issue
Block a user