diff options
author | chivorotkiv <shmakov@omich.net> | 2015-05-09 21:14:57 +0600 |
---|---|---|
committer | chivorotkiv <shmakov@omich.net> | 2015-05-09 21:14:57 +0600 |
commit | 949b8cf489a9b5e7192b314a42a37509a347ea50 (patch) | |
tree | 32d5e4069dc2db7b29e8897c008e3df448d16052 /GitAutoDeploy.py | |
parent | 9f80aff4c0c3eaa8b5580853a1b988d5c8a08332 (diff) | |
download | Git-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-x | GitAutoDeploy.py | 5 |
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): |