summaryrefslogtreecommitdiff
path: root/src/commit/commit-algorithm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commit/commit-algorithm.cpp')
-rw-r--r--src/commit/commit-algorithm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commit/commit-algorithm.cpp b/src/commit/commit-algorithm.cpp
index 1909ca9..a6ce3b0 100644
--- a/src/commit/commit-algorithm.cpp
+++ b/src/commit/commit-algorithm.cpp
@@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <unistd.h>
+
#include <cstdio>
#include <vector>
#include <string>
@@ -1302,6 +1304,8 @@ commit::doCommit(Cstore& cs, CfgNode& cfg1, CfgNode& cfg2)
ret = cs.markSessionUnsaved();
}
+ sync();
+
setenv("COMMIT_STATUS", cst, 1);
_execute_hooks(POST_COMMIT);
unsetenv("COMMIT_STATUS");