Fix git syntax issue
This commit is contained in:
parent
a52529f9b6
commit
1511506f72
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue