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
SDK
Dolphin Plugins
Commits
3c27d443
Commit
3c27d443
authored
Sep 16, 2020
by
Alexander Lohnau
💬
Browse files
Post last deprecated QProcess usage
parent
c362f621
Changes
1
Hide whitespace changes
Inline
Side-by-side
git/fileviewgitplugin.cpp
View file @
3c27d443
...
...
@@ -668,9 +668,14 @@ void FileViewGitPlugin::push()
m_command
=
"push"
;
m_pendingOperation
=
true
;
m_process
.
start
(
QString
(
"git push%4 %1 %2:%3"
).
arg
(
dialog
.
destination
()).
arg
(
dialog
.
localBranch
()).
arg
(
dialog
.
remoteBranch
()).
arg
(
dialog
.
force
()
?
QLatin1String
(
" --force"
)
:
QLatin1String
(
""
)));
QStringList
args
;
args
<<
"push"
;
if
(
dialog
.
force
())
{
args
<<
"--force"
;
}
args
<<
dialog
.
destination
();
args
<<
QStringLiteral
(
"%1:%2"
).
arg
(
dialog
.
localBranch
(),
dialog
.
remoteBranch
());
m_process
.
start
(
"git"
,
args
);
}
}
...
...
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