Commit 5f2a733a authored by Marco Mariani's avatar Marco Mariani

removed unused imports and code

parent 5a8ce3a7
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# vim: set et sts=2: # vim: set et sts=2:
import slapos.slap
import time
import subprocess import subprocess
import os import os
import re import re
import urllib
from flask import jsonify from flask import jsonify
import shutil import shutil
import string
from git import Repo from git import Repo
class Popen(subprocess.Popen): class Popen(subprocess.Popen):
...@@ -86,7 +82,6 @@ def switchBranch(project, name): ...@@ -86,7 +82,6 @@ def switchBranch(project, name):
json = "" json = ""
try: try:
repo = Repo(project) repo = Repo(project)
branches = repo.branches
current_branch = repo.active_branch.name current_branch = repo.active_branch.name
if name == current_branch: if name == current_branch:
json = "This is already your active branch for this project" json = "This is already your active branch for this project"
...@@ -170,7 +165,6 @@ def gitPull(project): ...@@ -170,7 +165,6 @@ def gitPull(project):
try: try:
repo = Repo(project) repo = Repo(project)
git = repo.git git = repo.git
current_branch = repo.active_branch.name
git.pull() git.pull()
code = 1 code = 1
except Exception, e: except Exception, e:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment