瀏覽代碼

Ports: Force full-length file indices when formatting patches

This keeps file index lengths from being dependent on internals of the
repository.
Tim Schumacher 2 年之前
父節點
當前提交
453323f3c1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Ports/.port_include.sh

+ 1 - 1
Ports/.port_include.sh

@@ -826,7 +826,7 @@ do_dev() {
     if [ "$first_hash" != "$current_hash" ]; then
         >&2 echo "Note: Regenerating patches as there are some commits in the port repo (started at $first_hash, now is $current_hash)"
         rm -fr "${PORT_META_DIR}"/patches/*.patch
-        git -C "$git_repo" format-patch --no-numbered --zero-commit --no-signature "$first_hash" -o "$(realpath "${PORT_META_DIR}/patches")"
+        git -C "$git_repo" format-patch --no-numbered --zero-commit --no-signature --full-index "$first_hash" -o "$(realpath "${PORT_META_DIR}/patches")"
         do_generate_patch_readme
     fi
 }