Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle missing description file in repo #35

Merged
merged 2 commits into from
Jan 20, 2015
Merged

Handle missing description file in repo #35

merged 2 commits into from
Jan 20, 2015

Conversation

rogermarlow
Copy link
Contributor

Fix to stop ginatra erroring if one of the repos in git_dirs does not have a .git/description file.
As discussed on issue #33

@description = File.read("#{@repo.path}description").strip
@description = '' if @description.match(/\AUnnamed repository;/)
@description = ''
if File.exists?("#{@repo.path}description") then
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes of course.

@NARKOZ
Copy link
Owner

NARKOZ commented Jan 20, 2015

Thank you

NARKOZ added a commit that referenced this pull request Jan 20, 2015
Handle missing description file in repo
@NARKOZ NARKOZ merged commit 55b84bb into NARKOZ:master Jan 20, 2015
@rogermarlow rogermarlow deleted the fix/description-absent branch January 20, 2015 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants