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
f911e2f2
Commit
f911e2f2
authored
Mar 04, 2021
by
Waqar Ahmed
Browse files
Fix output message
Signed-off-by:
Waqar Ahmed
<
waqar.17a@gmail.com
>
parent
2619fdcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/gitwidget.cpp
View file @
f911e2f2
...
...
@@ -215,13 +215,17 @@ void GitWidget::runGitCmd(const QStringList &args, const QString &i18error)
void
GitWidget
::
runPushPullCmd
(
const
QStringList
&
args
)
{
disconnect
(
&
git
,
&
QProcess
::
finished
,
nullptr
,
nullptr
);
connect
(
&
git
,
&
QProcess
::
finished
,
this
,
[
this
](
int
exitCode
,
QProcess
::
ExitStatus
es
)
{
connect
(
&
git
,
&
QProcess
::
finished
,
this
,
[
this
,
args
](
int
exitCode
,
QProcess
::
ExitStatus
es
)
{
// sever connection
disconnect
(
&
git
,
&
QProcess
::
finished
,
nullptr
,
nullptr
);
if
(
es
!=
QProcess
::
NormalExit
||
exitCode
!=
0
)
{
sendMessage
(
i18n
(
"git push error: %1"
,
QString
::
fromUtf8
(
git
.
readAllStandardError
())),
true
);
}
else
{
sendMessage
(
i18n
(
"git push finished"
),
false
);
auto
gargs
=
args
;
gargs
.
push_front
(
QStringLiteral
(
"git"
));
QString
cmd
=
gargs
.
join
(
QStringLiteral
(
" "
));
QString
out
=
QString
::
fromUtf8
(
git
.
readAllStandardError
()
+
git
.
readAllStandardOutput
());
sendMessage
(
i18n
(
"
\"
%1
\"
executed successfully: %2"
,
cmd
,
out
),
false
);
getStatus
();
}
});
...
...
Write
Preview
Supports
Markdown
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