Skip to content

Conversation

@davidbanham
Copy link

This flag allows unknown repositories to be automatically created on push or pull

This flag allows unknown repositories to be automatically created on push or pull
@davidbanham
Copy link
Author

Apologies for the drive-by PR. This functionality is useful to me so I added it in, thought I'd create the PR as a courtesy in case it might also be useful to the project authors. Feel free to merge if useful or close if not.

Cheers for creating and publishing the library. Much appreciated!

Copy link
Contributor

@dmitshur dmitshur left a comment

Choose a reason for hiding this comment

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

I wanted to share one comment related to the code style.

GitBinPath: "/usr/bin/git",
UploadPack: true,
ReceivePack: true,
AutoCreate: false,
Copy link
Contributor

@dmitshur dmitshur Feb 2, 2017

Choose a reason for hiding this comment

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

From a Go style perspective, given that false is already the zero value for bool, it might make sense to omit it instead of explicitly setting it to false here.

@davidbanham
Copy link
Author

Thanks for the style tip. I'm still reasonably new to Go so getting the hang of the idioms.

On taking a closer look at the other open PRs on the repo it looks like the functionality I'm adding here is actually a subset of #21 which itself is a subset of #27. This functionality could be implemented as a custom function passed to either one of those variants.

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