lib/gitrb/blob.rb in gitrb-0.1.9 vs lib/gitrb/blob.rb in gitrb-0.2.0
- old
+ new
@@ -48,10 +48,10 @@
end
# Save the data to the git object repository
def save
raise 'Blob is empty' if !data
- repository.put(self)
+ repository.put(self) if modified?
id
end
end