Skip to content

Commit

Permalink
Not loading default settings by default when using API
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Nov 19, 2015
1 parent 64f318c commit d3e8656
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

Changelog of Git Changelog.

## Next release
### Other changes

[ad85b354f985f53](https://github.com/tomasbjerre/git-changelog-lib/commit/ad85b354f985f53) Tomas Bjerre *2015-11-19 20:55:41*

Not loading default settings by default when using API

[64f318ca8f10ba8](https://github.com/tomasbjerre/git-changelog-lib/commit/64f318ca8f10ba8) Tomas Bjerre *2015-11-19 19:46:44*

updating changelog


## 1.4
### Github [#7](https://github.com/tomasbjerre/git-changelog-lib/issues/7)

Expand Down
7 changes: 5 additions & 2 deletions src/main/java/se/bjurr/gitchangelog/api/GitChangelogApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import static com.google.common.io.Files.write;
import static com.google.common.io.Resources.getResource;
import static se.bjurr.gitchangelog.internal.mediawiki.MediaWikiClient.createMediaWikiPage;
import static se.bjurr.gitchangelog.internal.settings.Settings.defaultSettings;
import static se.bjurr.gitchangelog.internal.settings.Settings.fromFile;

import java.io.File;
Expand Down Expand Up @@ -235,6 +234,10 @@ private ObjectId getId(GitRepo gitRepo, String ref, String commit) {
}

private GitChangelogApi() {
settings = defaultSettings();
settings = new Settings();
}

private GitChangelogApi(Settings settings) {
this.settings = settings;
}
}

0 comments on commit d3e8656

Please sign in to comment.