aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2015-01-30 12:46:48 -0800
committerTimmy Willison <timmywillisn@gmail.com>2015-01-30 12:54:19 -0800
commit5e5489cea5e1f4469219e1e3e1ca76c16ba20030 (patch)
treecf1f412e9ec9257e2b0604cc73cd2e5aa4881883 /build
parentf71d7f56e96480d2115bff5542ded04ce6546ec9 (diff)
downloadjquery-5e5489cea5e1f4469219e1e3e1ca76c16ba20030.tar.gz
jquery-5e5489cea5e1f4469219e1e3e1ca76c16ba20030.zip
Release: push dist to same remote as project
Conflicts: build/release/dist.js
Diffstat (limited to 'build')
-rw-r--r--build/release/dist.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/build/release/dist.js b/build/release/dist.js
index 93689b7ed..ae8d3bc21 100644
--- a/build/release/dist.js
+++ b/build/release/dist.js
@@ -4,6 +4,7 @@ module.exports = function( Release, complete ) {
fs = require( "fs" ),
shell = require( "shelljs" ),
pkg = require( Release.dir.repo + "/package.json" ),
+ distRemote = Release.remote.replace( "jquery", "jquery-compat-dist" ),
// These files are included with the distrubtion
files = [
"src",
@@ -16,8 +17,6 @@ module.exports = function( Release, complete ) {
* Clone the distribution repo
*/
function clone() {
- var distRemote = Release.remote.replace( "jquery", "jquery-compat-dist" );
-
Release.chdir( Release.dir.base );
Release.dir.dist = Release.dir.base + "/dist";
@@ -96,7 +95,7 @@ module.exports = function( Release, complete ) {
Release.chdir( Release.dir.dist );
console.log( "Pushing release to dist repo..." );
- Release.exec( "git push origin master --tags",
+ Release.exec( "git push " + distRemote + " master --tags",
"Error pushing master and tags to git repo." );
// Set repo for npm publish