Commit 5cd304dd authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'fix-invalid-syntax' into 'master'

Fix git syntax issue for git version older then 1.7.10

For #2067

See merge request !1599
parents 6cee8d77 1511506f
...@@ -238,7 +238,7 @@ class Repository ...@@ -238,7 +238,7 @@ class Repository
end end
def last_commit_for_path(sha, path) def last_commit_for_path(sha, path)
args = %W(git rev-list --max-count 1 #{sha} -- #{path}) args = %W(git rev-list --max-count=1 #{sha} -- #{path})
sha = Gitlab::Popen.popen(args, path_to_repo).first.strip sha = Gitlab::Popen.popen(args, path_to_repo).first.strip
commit(sha) commit(sha)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment