mirror of
https://github.com/Prowlarr/Indexers.git
synced 2025-12-26 22:19:47 +00:00
Fixed: handle both-added definition conflicts
This commit is contained in:
@@ -590,6 +590,17 @@ resolve_conflicts() {
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Handle "both added" definition files (when Git auto-moves files from Jackett paths)
|
||||||
|
both_added_defs=$(git status --porcelain | grep "^AA" | grep "definitions/v[0-9].*\.yml$" | awk '{print $2}')
|
||||||
|
if [ -n "$both_added_defs" ]; then
|
||||||
|
log "DEBUG" "Both added definition conflicts exist; using Jackett's version: [$both_added_defs]"
|
||||||
|
for file in $both_added_defs; do
|
||||||
|
log "INFO" "NEW INDEXER: Resolving both-added conflict for [$file]"
|
||||||
|
git checkout --theirs "$file"
|
||||||
|
git add --force "$file"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$nonyml_conflicts" ]; then
|
if [ -n "$nonyml_conflicts" ]; then
|
||||||
log "DEBUG" "Non-YML conflicts exist; removing [\n$nonyml_conflicts\n] files and restoring [package.json package-lock.json .editorconfig]"
|
log "DEBUG" "Non-YML conflicts exist; removing [\n$nonyml_conflicts\n] files and restoring [package.json package-lock.json .editorconfig]"
|
||||||
while IFS= read -r file; do
|
while IFS= read -r file; do
|
||||||
|
|||||||
Reference in New Issue
Block a user