Fix git syntax issue

This commit is contained in:
Dmitriy Zaporozhets 2015-02-25 15:17:20 -08:00
parent a52529f9b6
commit 1511506f72

View file

@ -238,7 +238,7 @@ class Repository
end
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
commit(sha)
end