Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/130573 to your computer and use it in GitHub Desktop.
Save mattn/130573 to your computer and use it in GitHub Desktop.
From 193538404516e3e2853d13663654099405ff97bf Mon Sep 17 00:00:00 2001
From: mattn <mattn.jp@gmail.com>
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