Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Allow empty message (no content) when committing #119

Merged
merged 2 commits into from
Jul 23, 2014

Conversation

scorphus
Copy link
Contributor

Update CreateTestRepository() method to allow empty content as commit message.

repo := "gandalf-test-repo"
file := "README"
content := ""
cleanUp, errCreate := CreateTestRepository(bare, repo, file, content, []string{"such", "folder", "much", "magic"}...)
Copy link
Contributor

Choose a reason for hiding this comment

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

You can pass the folders as string parameters instead a slice:

cleanUp, errCreate := CreateTestRepository(bare, repo, file, content, "such", "folder", "much", "magic")

andrewsmedina added a commit that referenced this pull request Jul 23, 2014
Allow empty message (no content) when committing
@andrewsmedina andrewsmedina merged commit 99a96c7 into tsuru:master Jul 23, 2014
@andrewsmedina
Copy link
Contributor

@scorphus thank you!

@scorphus scorphus deleted the empty-content branch July 23, 2014 17:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants