Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
2e9ee90c9c26
Commit
57ce7124
authored
Mar 07, 2012
by
Dmitriy Zaporozhets
Browse files
Fixed invalid commit show if git history broken
parent
be35d29fc733
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
2e9ee90c
...
...
@@ -260,7 +260,7 @@ def valid_repo?
def
commit
(
commit_id
=
nil
)
commit
=
if
commit_id
repo
.
commit
s
(
commit_id
)
.
first
repo
.
commit
(
commit_id
)
else
repo
.
commits
.
first
end
...
...
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