Skip to content

Adjusted updateRef() to conform in usability - #16

Merged
creationix merged 1 commit into
creationix:masterfrom
bkueppers:master
Feb 16, 2017
Merged

creationix merged 1 commit into
creationix:masterfrom
bkueppers:master

Conversation

@bkueppers

Copy link
Copy Markdown
Contributor

Added the following line
"if (ref === "HEAD") ref = "refs/heads/master";"
Therefore, ensuring that "HEAD" is resolved to "refs/heads/master", as is done in the other methods dealing with a single Ref, like deleteRef() or readRef()

Added the following line 
"if (ref === "HEAD") ref = "refs/heads/master";"
Therefore, ensuring that "HEAD" is resolved to "refs/heads/master", as is done in the other methods dealing with a single Ref, like deleteRef() or readRef()
@creationix
creationix merged commit f53307c into creationix:master Feb 16, 2017
@creationix

Copy link
Copy Markdown
Owner

Merged for now, but keep in mind that HEAD is not always refs/heads/master. The server can set a different default branch.

@bkueppers

Copy link
Copy Markdown
Contributor Author

Good Point. Wouldn't it be better then to remove this substitution from all of the methods?

@creationix

Copy link
Copy Markdown
Owner

I'd be fine either way.

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