Skip to content

Commit

Permalink
run changelog command into source folder of the project
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-cbon committed Jul 11, 2016
1 parent 839fadc commit 6c8221f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion debian/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,11 @@ func (d *Package) WriteChangelogFile(debianDir string) error {
return err
}
} else if d.ChangelogCmd != "" {
cmd, err := stringexec.Command(debianDir, d.ChangelogCmd)
wd, err := os.Getwd()
if err != nil {
return err
}
cmd, err := stringexec.Command(wd, d.ChangelogCmd)
if err != nil {
return err
}
Expand Down

0 comments on commit 6c8221f

Please sign in to comment.