From 1924de91c58a429452edd97b181520abd9968bf7 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 29 Feb 2012 23:34:06 +0200 Subject: fixed compare for push --- app/models/commit.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models/commit.rb') 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 -- cgit v1.2.1