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
367f88e4
Commit
367f88e4
authored
Mar 20, 2013
by
Matthias Putz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--amend
parent
591531da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
main.py
main.py
+2
-4
portable.py
portable.py
+1
-2
repo.iml
repo.iml
+1
-0
No files found.
main.py
View file @
367f88e4
...
@@ -411,10 +411,7 @@ def _WindowsPager(repo):
...
@@ -411,10 +411,7 @@ def _WindowsPager(repo):
args2
=
args
[
argsSplit
+
1
:]
args2
=
args
[
argsSplit
+
1
:]
pager
=
_SelectPager
(
cmd
.
manifest
.
globalConfig
)
pager
=
_SelectPager
(
cmd
.
manifest
.
globalConfig
)
shellCommand
=
"
%
s
%
s
%
s -- --piped-into-pager --no-pager
%
s |
%
s"
%
(
python
,
thisScript
,
' '
.
join
(
args1
),
' '
.
join
(
args2
),
pager
)
shellCommand
=
"
%
s
%
s
%
s -- --piped-into-pager --no-pager
%
s |
%
s"
%
(
python
,
thisScript
,
' '
.
join
(
args1
),
' '
.
join
(
args2
),
pager
)
print
(
"NEW 2"
)
subprocess
.
call
(
shellCommand
,
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
subprocess
.
call
(
shellCommand
,
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
#sys.stdin.close()
print
(
"DONE"
)
return
True
return
True
else
:
else
:
# set global variable if output is piped into pager; means that pager is simulated, this
# set global variable if output is piped into pager; means that pager is simulated, this
...
@@ -482,7 +479,8 @@ def _Main(argv):
...
@@ -482,7 +479,8 @@ def _Main(argv):
argv
=
list
(
sys
.
argv
)
argv
=
list
(
sys
.
argv
)
argv
.
extend
(
rce
.
extra_args
)
argv
.
extend
(
rce
.
extra_args
)
try
:
try
:
os
.
execv
(
__file__
,
argv
)
argv
.
insert
(
0
,
__file__
)
subprocess
.
call
(
argv
)
except
OSError
as
e
:
except
OSError
as
e
:
print
(
'fatal: cannot restart repo after upgrade'
,
file
=
sys
.
stderr
)
print
(
'fatal: cannot restart repo after upgrade'
,
file
=
sys
.
stderr
)
print
(
'fatal:
%
s'
%
e
,
file
=
sys
.
stderr
)
print
(
'fatal:
%
s'
%
e
,
file
=
sys
.
stderr
)
...
...
portable.py
View file @
367f88e4
...
@@ -44,8 +44,7 @@ def os_link(src, dst):
...
@@ -44,8 +44,7 @@ def os_link(src, dst):
dst
=
toWindowsPath
(
dst
)
dst
=
toWindowsPath
(
dst
)
# symlink does create soft links in windows for directories => use mklink
# symlink does create soft links in windows for directories => use mklink
# call windows cmd tool 'mklink' from git bash (mingw)
# call windows cmd tool 'mklink' from git bash (mingw)
p
=
subprocess
.
Popen
(
'cmd /c mklink /J
%
s
%
s'
%
(
dst
,
src
))
subprocess
.
Popen
(
'cmd /c mklink /J
%
s
%
s'
%
(
dst
,
src
))
p
.
communicate
()
else
:
else
:
# requires paths in relation to current dir (not in relation to target file)
# requires paths in relation to current dir (not in relation to target file)
src
=
toUnixPath
(
src
)
src
=
toUnixPath
(
src
)
...
...
repo.iml
View file @
367f88e4
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
</content>
</content>
<orderEntry
type=
"jdk"
jdkName=
"Python 3.3.0 (C:/Python33/python.exe)"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"jdk"
jdkName=
"Python 3.3.0 (C:/Python33/python.exe)"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
name=
"Python 3.3.0 (C:/Python33/python.exe) interpreter library"
level=
"application"
/>
</component>
</component>
</module>
</module>
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