Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
heptapod
hgitaly
Commits
c0d2866912ee
Commit
c48aeabb
authored
Nov 22, 2020
by
Sushil Khanchi
🐨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit: return with logging if revision not found
parent
625a62c2c75a
Pipeline
#13322
passed with stages
in 1 minute and 11 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
hgitaly/service/commit.py
hgitaly/service/commit.py
+7
-1
No files found.
hgitaly/service/commit.py
View file @
c0d28669
...
...
@@ -239,7 +239,13 @@ class CommitServicer(CommitServiceServicer, HGitalyServicer):
logger
.
debug
(
"FindCommit revision=%r"
,
revision
)
ctx
=
gitlab_revision_changeset
(
repo
,
revision
)
commit
=
None
if
ctx
is
None
else
message
.
commit
(
ctx
)
if
ctx
is
None
:
logger
.
warning
(
"FindCommit revision %r could not be found"
,
revision
)
return
FindCommitsResponse
()
commit
=
message
.
commit
(
ctx
)
return
FindCommitResponse
(
commit
=
commit
)
def
FindAllCommits
(
self
,
request
:
FindAllCommitsRequest
,
...
...
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