Skip to content

Commit

Permalink
fix Page#new? and Page#commit_message
Browse files Browse the repository at this point in the history
  • Loading branch information
sr committed Oct 3, 2008
1 parent ea533a2 commit 7261503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-wiki.rb
Expand Up @@ -77,7 +77,7 @@ def initialize(blob)
end

def new?
body.nil?
@blob.id.nil?
end

def name
Expand Down Expand Up @@ -117,7 +117,7 @@ def file_name
end

def commit_message
new? ? "Edited #{name}" : "Created #{name}"
new? ? "Created #{name}" : "Updated #{name}"
end
end

Expand Down

0 comments on commit 7261503

Please sign in to comment.