# therefore no endless loop in the cycle-check
no_remotes=1 recurse_deps check_cycle_name "$newly_added"
done
+
+# check for repetitions of deps
+depdir="$(get_temp tg-depdir -d)" ||
+ die "Can't check for multiple occurrences of deps"
+cat_file "$head_:.topdeps" -i |
+ while read dep; do
+ [ ! -d "$depdir/$dep" ] ||
+ die "Multiple occurrences of the same dep: $dep"
+ mkdir -p "$depdir/$dep" ||
+ die "Can't check for multiple occurrences of deps"
+ done