Add function to resolve short commit ID to full SHA1 #122

Merged
lunny merged 2 commits from unknown repository into master 2018-06-12 09:45:56 +00:00
Owner

Author: @lafriks

Needed for go-gitea/gitea#4127

Author: @lafriks Needed for go-gitea/gitea#4127
Author
Owner

Author: @lunny

LGTM

Author: @lunny LGTM
Author
Owner

Author: @daviian

@lafriks Can you add a test verifying that it really outputs "exit status 128" if the rev does not exist? My local git doesn't return that.

Author: @daviian @lafriks Can you add a test verifying that it really outputs "exit status 128" if the rev does not exist? My local git doesn't return that.
Author
Owner

Author: @lafriks

@daviian added tests for both cases (found and not found).
When running from console it will not contain exact text exit status 128, it will be just that exit status is 128. That I verified and works as expected.

Author: @lafriks @daviian added tests for both cases (found and not found). When running from console it will not contain exact text `exit status 128`, it will be just that exit status is 128. That I verified and works as expected.
This repo is archived. You cannot comment on pull requests.
No description provided.