Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pykat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
finesse
pykat
Commits
7ad7f45a
Commit
7ad7f45a
authored
11 years ago
by
Daniel Brown
Browse files
Options
Downloads
Patches
Plain Diff
fixing git calls so that it passes list to popen rather than string
parent
df71ede4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pykat/testing/utils.py
+9
-10
9 additions, 10 deletions
pykat/testing/utils.py
with
9 additions
and
10 deletions
pykat/testing/utils.py
+
9
−
10
View file @
7ad7f45a
...
...
@@ -29,17 +29,16 @@ def runcmd(args):
def
git
(
args
,
git_bin
=
GIT_BIN
):
cmd
=
""
if
type
(
args
)
is
list
:
args
.
insert
(
0
,
git_bin
)
cmd
=
"
"
.
join
(
args
)
else
:
cmd
=
git_bin
+
"
"
+
args
if
type
(
args
)
is
str
:
args
=
args
.
split
(
"
"
)
elif
type
(
args
)
is
not
list
:
raise
Exception
(
"
arg for utils.git must be a list or string
"
)
print
cmd
args
.
insert
(
0
,
git_bin
)
print
os
.
getcwd
()
print
"
GIT CMD:
"
+
"
"
.
join
(
args
),
os
.
getcwd
()
p
=
sub
.
Popen
(
cmd
,
stdout
=
sub
.
PIPE
,
stderr
=
sub
.
PIPE
)
p
=
sub
.
Popen
(
args
,
stdout
=
sub
.
PIPE
,
stderr
=
sub
.
PIPE
)
out
,
err
=
p
.
communicate
()
if
p
.
returncode
!=
0
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment