]> git.proxmox.com Git - libgit2.git/commit - src/status.c
Fix err msg for ambiguous path in git_status_file
authorRussell Belfer <rb@github.com>
Tue, 8 Jan 2013 21:45:06 +0000 (13:45 -0800)
committerRussell Belfer <rb@github.com>
Tue, 15 Jan 2013 17:49:32 +0000 (09:49 -0800)
commit5c8bb98ce9c4e5bb6527c8ffc274c8b3e0755fa7
tree2d5daba28b0743a2e112de7e8181b590fa252ee9
parent4b181037553601a0747ad39ccdd85ebd3b184055
Fix err msg for ambiguous path in git_status_file

Returning GIT_EAMBIGUOUS from inside the status callback gets
overridden with GIT_EUSER.  `git_status_file` accounted for this
via the callback payload, but was allowing the error message to
be cleared.  Move the `giterr_set` call outside the callback to
where the EUSER case was being dealt with.
src/status.c