|
@@ -1387,11 +1387,11 @@ class Repo(BaseRepo):
|
|
|
target.refs.set_symbolic_ref('HEAD', head)
|
|
|
target['HEAD'] = head_sha
|
|
|
|
|
|
- if not bare:
|
|
|
- # Checkout HEAD to target dir
|
|
|
- from dulwich.index import build_index_from_tree
|
|
|
- build_index_from_tree(target.path, target.index_path(),
|
|
|
- target.object_store, target['HEAD'].tree)
|
|
|
+ if not bare:
|
|
|
+ # Checkout HEAD to target dir
|
|
|
+ from dulwich.index import build_index_from_tree
|
|
|
+ build_index_from_tree(target.path, target.index_path(),
|
|
|
+ target.object_store, target['HEAD'].tree)
|
|
|
|
|
|
return target
|
|
|
|