소스 검색

Fix subdirs

Willy-JL 1 년 전
부모
커밋
e943a67290
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      .utils/subtree-subdir-helper.sh

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

@@ -17,7 +17,7 @@ subdir="${4}"
 action="${5}"
 
 prev="$(git branch --show-current)"
-temp="$(rev <<< "${repo%/}" | cut -d/ -f1,2 | rev | tr / -)-${branch}"
+temp="$(rev <<< "${repo%/}" | cut -d/ -f1,2 | rev | tr / -)-$(tr / - <<< "${branch}")"
 fetch="_fetch-${temp}"
 split="_split-${temp}-$(tr / - <<< "${subdir}")"
 git fetch --no-tags "${repo}" "${branch}:${fetch}"