Skip to content

Commit

Permalink
Merge pull request #6 from wanis/master
Browse files Browse the repository at this point in the history
Feature: Support for dev-{name} branches

https://getcomposer.org/doc/02-libraries.md#branches
  • Loading branch information
mishak87 committed Mar 9, 2015
2 parents 4d2301c + 6d31aa7 commit 58b72e8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions composer.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,9 @@ func (c *ComposerRepository) refreshProjectReference(p *Project, r *Reference) {
}

func (c *ComposerRepository) parseVersion(r string) string {
if r == "master" {
return "dev-master"
} else if c.versionRegexp.MatchString(r) {
if c.versionRegexp.MatchString(r) {
return r
}

return ""
return "dev-"+r
}

0 comments on commit 58b72e8

Please sign in to comment.