diff --git a/gulpfile.js b/gulpfile.js index e5b58bdd8..b3c6edbdc 100755 --- a/gulpfile.js +++ b/gulpfile.js @@ -687,24 +687,29 @@ gulp.task('release components', false, function() { // try pull git.pull('origin', 'master', gitOptions, function(error) { - console.log('a'); + + // local repo doesn't exist if(error) { - console.log('b'); + + // initialize local repo git.init(gitOptions, function(error) { - console.log('c'); if(error) { console.error('Error initializing repo'); throw error; } + // add remote url git.addRemote('origin', gitURL, gitOptions, function(error){ if(error) { console.error('Unable to add remote', error); } + + // try pull git.pull('origin', 'master', function(error) { if(error) { console.error('Cannot pull from repository', error); } }); + }); }); } diff --git a/package.json b/package.json index dfe0224b1..e5b1f20f4 100755 --- a/package.json +++ b/package.json @@ -4,20 +4,19 @@ "title": "Semantic UI", "description": "Semantic empowers designers and developers by creating a shared vocabulary for UI.", "homepage": "http://www.semantic-ui.com", - "author": "Jack Lukic ", + "author": "Jack Lukic ", "license": "MIT", "scripts": { "test": "gulp test" }, "repository": { "type": "git", - "url": "git://github.com/Semantic-Org/Semantic-UI.git" + "url": "git://github.com/Semantic-Org/Semantic-UI.git#1.0" }, "bugs": { "url": "https://github.com/Semantic-Org/Semantic-UI/issues" }, "dependencies": { - "gulp-git": "^0.5.3", "jquery": "x.x.x" }, "devDependencies": { @@ -35,6 +34,7 @@ "gulp-csscomb": "^3.0.3", "gulp-debug": "^1.0.1", "gulp-flatten": "0.0.4", + "gulp-git": "^0.5.3", "gulp-header": "^1.1.1", "gulp-help": "^1.2.0", "gulp-json-editor": "^2.1.0",