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
631893d7
Commit
631893d7
authored
Mar 07, 2014
by
thetc86
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8 from gizmomogwai/master
Fixes #7 - fixes crash in repo status -o
parents
5363efc0
263a6072
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
status.py
subcmds/status.py
+9
-7
No files found.
subcmds/status.py
View file @
631893d7
...
...
@@ -117,7 +117,7 @@ the following meanings:
status_header
=
' --
\t
'
for
item
in
dirs
:
if
not
os
.
path
.
isdir
(
item
):
outstring
.
write
(
''
.
join
([
status_header
,
item
]))
outstring
.
write
(
''
.
join
([
status_header
,
item
,
'
\n
'
]))
continue
if
item
in
proj_dirs
:
continue
...
...
@@ -126,7 +126,7 @@ the following meanings:
glob
.
glob
(
'
%
s/*'
%
item
),
\
proj_dirs
,
proj_dirs_parents
,
outstring
)
continue
outstring
.
write
(
''
.
join
([
status_header
,
item
,
'/'
]))
outstring
.
write
(
''
.
join
([
status_header
,
item
,
'/'
,
'
\n
'
]))
def
Execute
(
self
,
opt
,
args
):
all_projects
=
self
.
GetProjects
(
args
)
...
...
@@ -182,18 +182,20 @@ the following meanings:
try
:
os
.
chdir
(
self
.
manifest
.
topdir
)
outstring
=
io
.
StringIO
.
StringIO
()
outstring
=
io
.
StringIO
()
self
.
_FindOrphans
(
glob
.
glob
(
'.*'
)
+
\
glob
.
glob
(
'*'
),
\
proj_dirs
,
proj_dirs_parents
,
outstring
)
if
outstring
.
buflist
:
if
outstring
.
tell
()
>
0
:
output
=
StatusColoring
(
self
.
manifest
.
globalConfig
)
output
.
project
(
'Objects not within a project (orphans)'
)
output
.
nl
()
for
entry
in
outstring
.
buflist
:
output
.
untracked
(
entry
)
output
.
nl
()
outstring
.
seek
(
0
)
lines
=
outstring
.
readlines
()
for
line
in
lines
[
0
:
len
(
lines
)
-
1
]:
output
.
untracked
(
line
)
output
.
untracked
(
str
.
rstrip
(
lines
[
len
(
lines
)
-
1
]))
else
:
print
(
'No orphan files or directories'
)
...
...
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