summaryrefslogtreecommitdiffstats
path: root/src/imitatepass.cpp
diff options
context:
space:
mode:
authortezeb <tezeb+github@outoftheblue.pl>2017-01-11 00:04:46 +0100
committertezeb <tezeb+github@outoftheblue.pl>2017-01-11 00:04:46 +0100
commitf457b6fbfe1e55f0cd9a2db615e5583cdd6259fa (patch)
treecf9c4b5cd5a955d947a1fc413207a6290dcd7b55 /src/imitatepass.cpp
parentd12d945631ce76bf90bfc7a6c1efd1db498c65d4 (diff)
automate GitPush & minor fixes
Diffstat (limited to 'src/imitatepass.cpp')
-rw-r--r--src/imitatepass.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/imitatepass.cpp b/src/imitatepass.cpp
index adf367a2..9a9b7e6f 100644
--- a/src/imitatepass.cpp
+++ b/src/imitatepass.cpp
@@ -295,6 +295,7 @@ void ImitatePass::reencryptPath(QString dir) {
}
if (QtPassSettings::isAutoPush()) {
emit statusMsg(tr("Updating password-store"), 2000);
+ // TODO(bezet): this is non-blocking and shall be done outside
GitPush();
}
emit endReencryptPath();
@@ -317,10 +318,6 @@ void ImitatePass::Move(const QString src, const QString dest,
QString message = QString("moved from %1 to %2 using QTPass.");
message = message.arg(src).arg(dest);
GitCommit("", message);
- if (QtPassSettings::isAutoPush()) {
- GitPush();
- }
-
} else {
QDir qDir;
QFileInfo srcFileInfo(src);
@@ -359,10 +356,6 @@ void ImitatePass::Copy(const QString src, const QString dest,
QString message = QString("copied from %1 to %2 using QTPass.");
message = message.arg(src).arg(dest);
GitCommit("", message);
- if (QtPassSettings::isAutoPush()) {
- GitPush();
- }
-
} else {
QDir qDir;
if (force) {