Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
klaus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
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
GitHub Mirror
jonashaag
klaus
Commits
01c6ddf5
Commit
01c6ddf5
authored
7 years ago
by
Jonas Haag
Browse files
Options
Downloads
Patches
Plain Diff
Fix #202 (Windows only)
parent
7d67a41b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
klaus/repo.py
+2
-2
2 additions, 2 deletions
klaus/repo.py
with
2 additions
and
2 deletions
klaus/repo.py
+
2
−
2
View file @
01c6ddf5
...
...
@@ -137,7 +137,7 @@ class FancyRepo(dulwich.repo.Repo):
cmd
.
append
(
'
--skip=%d
'
%
skip
)
if
max_commits
:
cmd
.
append
(
'
--max-count=%d
'
%
max_commits
)
cmd
.
append
(
commit
.
id
)
cmd
.
append
(
decode_from_git
(
commit
.
id
)
)
if
path
:
cmd
.
extend
([
'
--
'
,
path
])
...
...
@@ -150,7 +150,7 @@ class FancyRepo(dulwich.repo.Repo):
the file, the list contains the commit that last changed that line.
"""
# XXX see comment in `.history()`
cmd
=
[
'
git
'
,
'
blame
'
,
'
-ls
'
,
'
--root
'
,
commit
.
id
,
'
--
'
,
path
]
cmd
=
[
'
git
'
,
'
blame
'
,
'
-ls
'
,
'
--root
'
,
decode_from_git
(
commit
.
id
)
,
'
--
'
,
path
]
output
=
subprocess
.
check_output
(
cmd
,
cwd
=
os
.
path
.
abspath
(
self
.
path
))
sha1_sums
=
[
line
[:
40
]
for
line
in
output
.
strip
().
split
(
b
'
\n
'
)]
return
[
None
if
self
[
sha1
]
is
None
else
decode_from_git
(
self
[
sha1
].
id
)
for
sha1
in
sha1_sums
]
...
...
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