Explorar o código

No such thing as RefsContainer.get.

Jelmer Vernooij %!s(int64=3) %!d(string=hai) anos
pai
achega
38a2dcb82c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dulwich/porcelain.py

+ 1 - 1
dulwich/porcelain.py

@@ -1141,7 +1141,7 @@ def pull(
         for (lh, rh, force_ref) in selected_refs:
             if not force_ref and rh in r.refs:
                 try:
-                    check_diverged(r, r.refs.get(rh), fetch_result.refs[lh])
+                    check_diverged(r, r.refs.follow(rh)[1], fetch_result.refs[lh])
                 except DivergedBranches:
                     if fast_forward:
                         raise