diff options
| author | Junio C Hamano <gitster@pobox.com> | 2009-05-18 09:01:06 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2009-05-18 09:01:06 -0700 |
| commit | 36587681b4743c980e4e74a342dc5ec105314d08 (patch) | |
| tree | 35f0267f12def071aadef8de84e257f606794135 /builtin-remote.c | |
| parent | f2a56171accb4fec03a30e513702283ab90088a1 (diff) | |
| parent | f6a5f1bb509a3af182fe568135398f1f2be15e5d (diff) | |
| download | git-36587681b4743c980e4e74a342dc5ec105314d08.tar.gz | |
Merge branch 'ar/unlink-err'
* ar/unlink-err:
print unlink(2) errno in copy_or_link_directory
replace direct calls to unlink(2) with unlink_or_warn
Introduce an unlink(2) wrapper which gives warning if unlink failed
Diffstat (limited to 'builtin-remote.c')
| -rw-r--r-- | builtin-remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-remote.c b/builtin-remote.c index 2ed752cbf1..71abf68404 100644 --- a/builtin-remote.c +++ b/builtin-remote.c @@ -525,8 +525,8 @@ static int migrate_file(struct remote *remote) path = git_path("remotes/%s", remote->name); else if (remote->origin == REMOTE_BRANCHES) path = git_path("branches/%s", remote->name); - if (path && unlink(path)) - warning("failed to remove '%s'", path); + if (path) + unlink_or_warn(path); return 0; } |
