Created
June 16, 2009 06:58
-
-
Save mattn/130573 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 193538404516e3e2853d13663654099405ff97bf Mon Sep 17 00:00:00 2001 | |
From: mattn <[email protected]> | |
Date: Tue, 16 Jun 2009 15:59:23 +0900 | |
Subject: [PATCH] description is empty when edit 'description' file. | |
--- | |
ginatra.rb | 3 ++- | |
1 files changed, 2 insertions(+), 1 deletions(-) | |
diff --git a/ginatra.rb b/ginatra.rb | |
index 850dc1a..b18611d 100644 | |
--- a/ginatra.rb | |
+++ b/ginatra.rb | |
@@ -74,7 +74,8 @@ module Ginatra | |
@repo = Grit::Repo.new(path) | |
@param = File.split(path).last.gsub(/\.git$/, '') | |
@name = @param.capitalize | |
- @description = "Please edit the #{@param}.git/description file for this repository and set the description for it." if /^Unnamed repository;/.match(@repo.description) | |
+ @description = @repo.description | |
+ @description = "Please edit the #{@param}.git/description file for this repository and set the description for it." if /^Unnamed repository;/.match(@description) | |
@repo | |
end | |
-- | |
1.6.3.msysgit.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment