Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
git-repo
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux-tools
git-repo
Commits
5363efc0
Commit
5363efc0
authored
Sep 17, 2013
by
Matthias Putz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed forall with env vars on windows
parent
0518357b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
forall.py
subcmds/forall.py
+14
-1
No files found.
subcmds/forall.py
View file @
5363efc0
...
@@ -20,9 +20,11 @@ import os
...
@@ -20,9 +20,11 @@ import os
import
select
import
select
import
sys
import
sys
import
subprocess
import
subprocess
import
portable
from
color
import
Coloring
from
color
import
Coloring
from
command
import
Command
,
MirrorSafeCommand
from
command
import
Command
,
MirrorSafeCommand
from
repo_trace
import
REPO_TRACE
,
IsTrace
,
Trace
_CAN_COLOR
=
[
_CAN_COLOR
=
[
'branch'
,
'branch'
,
...
@@ -68,6 +70,9 @@ at least one byte of output on stdout.
...
@@ -68,6 +70,9 @@ at least one byte of output on stdout.
Environment
Environment
-----------
-----------
Note: Variables are referred to in the
%
PATH
%
style on Windows systems.
On unix systems in $PATH style.
pwd is the project's working directory. If the current client is
pwd is the project's working directory. If the current client is
a mirror client, then pwd is the Git repository.
a mirror client, then pwd is the Git repository.
...
@@ -135,7 +140,7 @@ without iterating through the remaining projects.
...
@@ -135,7 +140,7 @@ without iterating through the remaining projects.
if
re
.
compile
(
r'^[a-z0-9A-Z_/\.-]+$'
)
.
match
(
cmd
[
0
]):
if
re
.
compile
(
r'^[a-z0-9A-Z_/\.-]+$'
)
.
match
(
cmd
[
0
]):
shell
=
False
shell
=
False
if
shell
:
if
shell
and
portable
.
isPosix
()
:
cmd
.
append
(
cmd
[
0
])
cmd
.
append
(
cmd
[
0
])
cmd
.
extend
(
opt
.
command
[
1
:])
cmd
.
extend
(
opt
.
command
[
1
:])
...
@@ -206,6 +211,14 @@ without iterating through the remaining projects.
...
@@ -206,6 +211,14 @@ without iterating through the remaining projects.
stdout
=
None
stdout
=
None
stderr
=
None
stderr
=
None
if
not
portable
.
isUnix
():
if
type
(
cmd
)
is
list
:
cmd
=
" "
.
join
(
cmd
)
if
IsTrace
():
Trace
(
"execute command:
%
s"
%
str
(
cmd
)
.
replace
(
"
%
"
,
"
%%
"
))
Trace
(
"environment is:
%
s"
%
str
(
env
))
p
=
subprocess
.
Popen
(
cmd
,
p
=
subprocess
.
Popen
(
cmd
,
cwd
=
cwd
,
cwd
=
cwd
,
shell
=
shell
,
shell
=
shell
,
...
...
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