Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod-tests
Commits
1d1a69899fba
Commit
d6cb41f8
authored
Oct 29, 2020
by
Georges Racinet on mutations.racinet.fr
Browse files
Git: utility method to read shas
parent
94813596a46e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/utils/git.py
View file @
1d1a6989
...
...
@@ -103,3 +103,6 @@ class LocalRepo(object):
def
graphlog
(
self
):
return
self
.
git
(
'log'
,
'--all'
,
'--graph'
)
def
sha
(
self
,
ref
):
return
self
.
git
(
'log'
,
'--pretty=%H'
,
'-n1'
,
ref
).
strip
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment