diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-02-29 23:34:06 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-02-29 23:34:06 +0200 |
commit | 1924de91c58a429452edd97b181520abd9968bf7 (patch) | |
tree | e0d91cd7f825cee10279e129c662f40e09a253c2 /app/models/commit.rb | |
parent | f6f939eeb8e2864564942885e9254ca7670b75e7 (diff) | |
download | gitlab-ce-1924de91c58a429452edd97b181520abd9968bf7.tar.gz |
fixed compare for push
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 281e3f036e2..a59e880370a 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -56,4 +56,8 @@ class Commit def prev_commit parents.first end + + def prev_commit_id + prev_commit.id + end end |