Skip to content

Commit eb80ea8

Browse files
committed
bug fix: git attach
1 parent 7686dbc commit eb80ea8

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

loginSystem/static/loginSystem/login-systen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ application.controller('loginSystem', function($scope,$http,$window) {
7878
}
7979
else{
8080
$("#loginFailed").hide();
81-
$window.location.href = '/base';
81+
$window.location.href = '/base/';
8282
}
8383

8484

plogical/applicationInstaller.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,6 @@ def setupGit(self):
558558

559559
## checking for directories/files
560560

561-
logging.writeToFile(finalPath)
562-
563561
if self.dataLossCheck(finalPath, tempStatusPath) == 0:
564562
return 0
565563

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

572570
try:
573-
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
571+
command = 'git clone --depth 1 --no-single-branch git@' + defaultProvider +'.com:' + username + '/' + reponame + '.git -b ' + branch + ' ' + finalPath
574572
ProcessUtilities.executioner(command, externalApp)
575573
except subprocess.CalledProcessError, msg:
576574
statusFile = open(tempStatusPath, 'w')

static/loginSystem/login-systen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ application.controller('loginSystem', function($scope,$http,$window) {
7878
}
7979
else{
8080
$("#loginFailed").hide();
81-
$window.location.href = '/base';
81+
$window.location.href = '/base/';
8282
}
8383

8484

websiteFunctions/website.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,6 +1857,7 @@ def setupGit(self, request=None, userID=None, data=None):
18571857

18581858
configContent = """Host github.com
18591859
IdentityFile /home/%s/.ssh/%s
1860+
StrictHostKeyChecking no
18601861
""" % (self.domain, website.externalApp)
18611862

18621863
path = "/home/cyberpanel/config"

0 commit comments

Comments
 (0)