summaryrefslogtreecommitdiffstats
path: root/GitAutoDeploy.py
diff options
context:
space:
mode:
authorchivorotkiv <shmakov@omich.net>2015-05-09 21:14:57 +0600
committerchivorotkiv <shmakov@omich.net>2015-05-09 21:14:57 +0600
commit949b8cf489a9b5e7192b314a42a37509a347ea50 (patch)
tree32d5e4069dc2db7b29e8897c008e3df448d16052 /GitAutoDeploy.py
parent9f80aff4c0c3eaa8b5580853a1b988d5c8a08332 (diff)
downloadGit-Auto-Deploy-949b8cf489a9b5e7192b314a42a37509a347ea50.zip
Git-Auto-Deploy-949b8cf489a9b5e7192b314a42a37509a347ea50.tar.gz
Git-Auto-Deploy-949b8cf489a9b5e7192b314a42a37509a347ea50.tar.bz2
Fix stupid error.
Diffstat (limited to 'GitAutoDeploy.py')
-rwxr-xr-xGitAutoDeploy.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/GitAutoDeploy.py b/GitAutoDeploy.py
index f6ed8ac..555b0d2 100755
--- a/GitAutoDeploy.py
+++ b/GitAutoDeploy.py
@@ -35,7 +35,7 @@ class GitAutoDeploy(BaseHTTPRequestHandler):
if(not os.path.isdir(repository['path'] + '/.git')):
print "Directory %s is not a Git repository" % repository['path']
sys.exit(2)
- self.clearLock(repository['path'])
+ myClass.clearLock(repository['path'])
return myClass.config
@@ -127,7 +127,8 @@ class GitAutoDeploy(BaseHTTPRequestHandler):
def unlock(self, path):
call(['sh unlock.sh "' + path + '"'], shell=True)
- def clearLock(self, path):
+ @classmethod
+ def clearLock(myClass, path):
call(['sh clear_lock.sh "' + path + '"'], shell=True)
def pull(self, path, branch):