Prechádzať zdrojové kódy

No unrelated histories

Willy-JL 2 rokov pred
rodič
commit
a1940c74a2
1 zmenil súbory, kde vykonal 1 pridanie a 7 odobranie
  1. 1 7
      .utils/subtree-subdir-helper.sh

+ 1 - 7
.utils/subtree-subdir-helper.sh

@@ -19,10 +19,4 @@ git fetch --no-tags "${repo}" "${branch}:${fetch}"
 git checkout "${fetch}"
 git checkout "${fetch}"
 git subtree split -P "${subdir}" -b "${split}"
 git subtree split -P "${subdir}" -b "${split}"
 git checkout "${prev}"
 git checkout "${prev}"
-
-exec 69>&1
-result="$(git subtree "${action}" -P "${path}" "${split}" -m "${action^} ${path} from ${repo}" 2>&1 | tee /proc/self/fd/69)"
-if grep "refusing to merge unrelated histories" <<< "$result" > /dev/null; then
-    echo "History at ${repo} is unrelated, using squash..."
-    git subtree "${action}" -P "${path}" "${split}" -m "${action^} ${path} from ${repo}" --squash
-fi
+git subtree "${action}" -P "${path}" "${split}" -m "${action^} ${path} from ${repo}"