Closed DavidMonk00 closed 7 months ago
Hi,
Thanks for this change, however the use of revision in the git fetch
was deliberate - so that the appropriate revision would always be downloaded regardless of where it is in the git history and what clone depth has been requested.
The cause of the error in the command that you quoted above is that as a side-effect of the addition of the --depth
flag, the full SHA now needs to be used rather than the short SHA. On this subject, I've just updated the code (in PR #204) so that ipbb add git ... -r SHA
will return a non-zero exit code if it fails to check out the specified revision; the error message also highlights if the supplied SHA is too short.
Cheers, Tom
When checking out a specific commit, the function would fail and revert to staying at the HEAD of the master branch.
This fix should fetch, then checkout the commit.
Previous behaviour:
Error raised (when raising in except block):