Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iliya Manolov
slapos.toolbox
Commits
5f2a733a
Commit
5f2a733a
authored
Oct 11, 2012
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused imports and code
parent
5a8ce3a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
slapos/runner/gittools.py
slapos/runner/gittools.py
+0
-6
No files found.
slapos/runner/gittools.py
View file @
5f2a733a
# -*- coding: utf-8 -*-
# vim: set et sts=2:
import
slapos.slap
import
time
import
subprocess
import
os
import
re
import
urllib
from
flask
import
jsonify
import
shutil
import
string
from
git
import
Repo
class
Popen
(
subprocess
.
Popen
):
...
...
@@ -86,7 +82,6 @@ def switchBranch(project, name):
json
=
""
try
:
repo
=
Repo
(
project
)
branches
=
repo
.
branches
current_branch
=
repo
.
active_branch
.
name
if
name
==
current_branch
:
json
=
"This is already your active branch for this project"
...
...
@@ -170,7 +165,6 @@ def gitPull(project):
try
:
repo
=
Repo
(
project
)
git
=
repo
.
git
current_branch
=
repo
.
active_branch
.
name
git
.
pull
()
code
=
1
except
Exception
,
e
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment