Browse Source

Mirror fix

pull/251/head
Unknown 11 years ago
parent
commit
1161c71ac1
  1. 1
      .gobuild.yml
  2. 2
      models/release.go

1
.gobuild.yml

@ -1,6 +1,5 @@
filesets: filesets:
includes: includes:
- conf
- templates - templates
- public - public
- LICENSE - LICENSE

2
models/release.go

@ -61,8 +61,6 @@ func CreateRelease(gitRepo *git.Repository, rel *Release) error {
if !gitRepo.IsTagExist(rel.TagName) { if !gitRepo.IsTagExist(rel.TagName) {
_, stderr, err := com.ExecCmdDir(gitRepo.Path, "git", "tag", rel.TagName, "-m", rel.Title) _, stderr, err := com.ExecCmdDir(gitRepo.Path, "git", "tag", rel.TagName, "-m", rel.Title)
if err != nil { if err != nil {
return err
} else if strings.Contains(stderr, "fatal:") {
return errors.New(stderr) return errors.New(stderr)
} }
} else { } else {

Loading…
Cancel
Save