Skip to content

Commit

Permalink
Fix: use "requireCleanWorkingDir" in src repo (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Sep 21, 2015
1 parent 54f95ce commit 42be59a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function getSrcRepoTasks(options) {
bump: shell.bump.bind(null, options.pkgFiles, options.version),
stage: git.stage.bind(null, options.pkgFiles),
stageDir: isStageBuildDir ? git.stageDir.bind(null, options.dist.baseDir) : noop,
hasChanges: git.hasChanges.bind(null, 'src'),
hasChanges: git.hasChanges.bind(null, 'src', options.requireCleanWorkingDir),
push: git.push.bind(null, options.remoteUrl, options.src.pushRepo),
pushTags: git.pushTags.bind(null, options.src.pushRepo),
release: options.github.release ? git.release.bind(null, options, options.remoteUrl) : noop,
Expand All @@ -185,7 +185,7 @@ function getDistRepoTasks(options) {

return _.extend({}, getGenericTasks(options), {
bump: shell.bump.bind(null, distPkgFiles, options.version),
hasChanges: git.hasChanges.bind(null, 'dist', options.requireCleanWorkingDir),
hasChanges: git.hasChanges.bind(null, 'dist'),
clone: git.clone.bind(null, options.dist.repo, options.dist.stageDir),
copy: shell.copy.bind(null, options.dist.files, {cwd: options.dist.baseDir}, options.dist.stageDir),
pushd: shell.pushd.bind(null, options.dist.stageDir),
Expand Down

0 comments on commit 42be59a

Please sign in to comment.