Skip to content
Permalink
Browse files

bug fix: git attach

  • Loading branch information...
usmannasir committed Aug 29, 2019
1 parent 7686dbc commit eb80ea800648f9038dd749c7443cbe5a9f613f64
@@ -78,7 +78,7 @@ application.controller('loginSystem', function($scope,$http,$window) {
}
else{
$("#loginFailed").hide();
$window.location.href = '/base';
$window.location.href = '/base/';
}


@@ -558,8 +558,6 @@ def setupGit(self):

## checking for directories/files

logging.writeToFile(finalPath)

if self.dataLossCheck(finalPath, tempStatusPath) == 0:
return 0

@@ -570,7 +568,7 @@ def setupGit(self):
statusFile.close()

try:
command = 'sudo GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no" git clone --depth 1 --no-single-branch git@' + defaultProvider +'.com:' + username + '/' + reponame + '.git -b ' + branch + ' ' + finalPath
command = 'git clone --depth 1 --no-single-branch git@' + defaultProvider +'.com:' + username + '/' + reponame + '.git -b ' + branch + ' ' + finalPath
ProcessUtilities.executioner(command, externalApp)
except subprocess.CalledProcessError, msg:
statusFile = open(tempStatusPath, 'w')
@@ -78,7 +78,7 @@ application.controller('loginSystem', function($scope,$http,$window) {
}
else{
$("#loginFailed").hide();
$window.location.href = '/base';
$window.location.href = '/base/';
}


@@ -1857,6 +1857,7 @@ def setupGit(self, request=None, userID=None, data=None):

configContent = """Host github.com
IdentityFile /home/%s/.ssh/%s
StrictHostKeyChecking no
""" % (self.domain, website.externalApp)

path = "/home/cyberpanel/config"

0 comments on commit eb80ea8

Please sign in to comment.
You can’t perform that action at this time.