]> git.ipfire.org Git - thirdparty/git.git/commit
worktree: fix order of arguments in error message
authorMatheus Tavares <matheus.bernardino@usp.br>
Fri, 20 Nov 2020 15:09:39 +0000 (12:09 -0300)
committerJunio C Hamano <gitster@pobox.com>
Sat, 21 Nov 2020 21:31:34 +0000 (13:31 -0800)
commitb86339b12bc7ef179e2ce4096a5d1ede257ca4d2
treedbd8ce2ff0efe8e0cf38a23989f4270dd05b7dec
parent898f80736c75878acc02dc55672317fcc0e0a5a6
worktree: fix order of arguments in error message

`git worktree add` (without --force) errors out when given a path
that is already registered as a worktree and the path is missing on
disk. But the `cmd` and `path` strings are switched on the error
message. Let's fix that.

Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/worktree.c