Skip to content

Commit 88b25cd

Browse files
committed
Was not syncing heads in many cases
Not entirely sure this is the best way to do this because it sort of makes some assumptions. It works better than not, though, as in many (most/all?) cases only master would get synced. Thansks to @yuters for pointing this out. Closes #5
1 parent 257991f commit 88b25cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git-subsplit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ subsplit_publish()
159159

160160
for HEAD in $HEADS
161161
do
162-
if ! git show-ref --quiet --verify -- "refs/heads/${HEAD}"
162+
if ! git show-ref --quiet --verify -- "refs/remotes/origin/${HEAD}"
163163
then
164164
say " - skipping head '${HEAD}' (does not exist)"
165165
continue

0 commit comments

Comments
 (0)