diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-10-22 09:12:45 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-10-22 09:29:55 +0000 |
commit | e47dcede79e5b7e5dccee485826e5dd97e53a5da (patch) | |
tree | 62c4476907b5b92d2c989f4dc27ead7fe4799a43 /NEWS | |
parent | 6655ef761d77c3234c3cf775bf5ee38bd3f43b0c (diff) | |
download | morph-e47dcede79e5b7e5dccee485826e5dd97e53a5da.tar.gz |
Improve get-repo error message
When attempting to get a repo with no commit at the ref we want,
we get a 'No such file or directory' error, which is confusing,
this is because we attempt to remove the directory we plan to clone
into, but if there's no commit at the ref we want then we don't
get as far as running git clone, so the directory doesn't exist,
and we fail to remove it.
This commit improves the error message by catching the InvalidRefError
separately.
Change-Id: Ibca20dd995d858713e56ab834daa97a8297cafc8
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions