Я борюсь со следующей проблемой. Когда я продолжаю получать ревизии из SVN с
git svn fetch
Я получаю следующую ошибку:
Found possible branch point: https://somecompany.com/product/trunk
=> https://somecompany.com/product/branches/deep/branches/product-001, 72666
Found branch parent: (refs/remotes/deep/branches/product-001) b685b7b92813885fdf 6b8e2663daf884bf504b14
Following parent with do_switch
Successfully followed parent
error: 'refs/remotes/deep' exists; cannot create 'refs/remotes/deep/branches/product-001'
fatal: Cannot lock the ref 'refs/remotes/deep/branches/product-001'.
update-ref -m r72667 refs/remotes/deep/branches/product-001 df51920e8f0a53f26507 c2679eb6a9dbad91e0d6: command returned error: 128
Это произошло потому, что я выбирал ревизии, используя фильтр по умолчанию для веток SVN:
[svn-remote "svn"]
url = https://somecompany.com/someproduct
fetch = trunk:refs/remotes/trunk
branches = branches/*:refs/remotes/*
tags = tags/*:refs/remotes/tags/*
Теперь у меня добавлена строка ниже, но уже слишком поздно:
branches = branches/deep/branches/*:refs/remotes/deep/branches/*
Я попытался исправить это с помощью git svn reset, чтобы удалить все коммиты. На самом деле из сообщения об ошибке я вижу, что git пытается правильно, но не может из-за существующего удаленного филиала / deep.
Я попытался найти 2 возможных решения:
1. Удалите эту ветку (remotes / deep), но, поскольку она отслеживается git как remote, я не смог найти никакого решения для этого.
2. Удалите всю историю, связанную с этой веткой. Тоже безуспешно: (
Кто-нибудь знает, как бороться с моей проблемой?