diff options
Diffstat (limited to 'src/commit/commit-algorithm.cpp')
-rw-r--r-- | src/commit/commit-algorithm.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commit/commit-algorithm.cpp b/src/commit/commit-algorithm.cpp index 13d3500..f04b8c2 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> @@ -1358,6 +1360,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"); |