Skip to content

Commit 4940af7

Browse files
author
William Blankenship
committed
Merge pull request #3 from Crackerz/master
50311bb
2 parents 807fe9f + 50311bb commit 4940af7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exports.maintainRepo = function (dir,url,callback) {
2222
//TODO: Handle errors for git. May not have permission for the specified directory
2323
var child = exec('git init '+dir, function(error, stdout,stderr) {
2424
var child = exec('git -C "'+dir+'" remote add origin '+url,function(error,stdout,stderr) {
25-
var child = exec('git -C "'+dir+'" reset --hard && git -C "'+dir+'" pull origin master',function(error,stdout,stderr) {
25+
var child = exec('git --git-dir="'+dir+'/.git" --work-tree="'+dir+'" reset --hard && git --git-dir="'+dir+'/.git" --work-tree="'+dir+'" pull origin master',function(error,stdout,stderr) {
2626
if(!execResult(error,stdout,stderr)) {
2727
console.log('exec error: '+error);
2828
}

0 commit comments

Comments
 (0)