Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
e7552d38
Verified
Commit
e7552d38
authored
Jan 13, 2022
by
Mufeed Ali
Browse files
gitblame: Don't return error on untracked files
parent
e6d75631
Pipeline
#123161
passed with stage
in 4 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/git-blame/kategitblameplugin.cpp
View file @
e7552d38
...
...
@@ -320,7 +320,7 @@ void KateGitBlamePluginView::blameFinished(int exitCode, QProcess::ExitStatus ex
const
auto
error
=
m_blameInfoProc
.
readAllStandardError
();
// Ignore, this repo doesn't have any commits or not a repo
if
(
error
.
startsWith
(
"fatal: no such ref: HEAD"
)
||
error
.
startsWith
(
"fatal: not a git repository"
))
{
if
(
error
.
startsWith
(
"fatal: no such ref: HEAD"
)
||
error
.
startsWith
(
"fatal: not a git repository"
)
||
error
.
startsWith
(
"fatal: no such path "
)
)
{
return
;
}
...
...
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