summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xetc/committer.scm.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/committer.scm.in b/etc/committer.scm.in
index 376e1ac063..7991dc7430 100755
--- a/etc/committer.scm.in
+++ b/etc/committer.scm.in
@@ -306,6 +306,8 @@ modifying."
                       (usleep %delay)
                       (unless (eqv? 0 (status:exit-val (close-pipe port)))
                         (error "Cannot commit")))))
-                 (new+old+hunks changes))))))
+                 ;; XXX: we recompute the hunks here because previous
+                 ;; insertions lead to offsets.
+                 (new+old+hunks (diff-info)))))))
 
 (main)