summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/repository/cvs.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb
index 5cec74e5a..c8f98852e 100644
--- a/app/models/repository/cvs.rb
+++ b/app/models/repository/cvs.rb
@@ -65,7 +65,11 @@ class Repository::Cvs < Repository
end
def cat(path, identifier=nil)
- rev = identifier.nil? ? nil : changesets.find_by_revision(identifier)
+ rev = nil
+ if ! identifier.nil?
+ rev = changesets.find_by_revision(identifier)
+ return nil if rev.nil?
+ end
scm.cat(path, rev.nil? ? nil : rev.committed_on)
end