Kiln » Dependencies » Dulwich Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master

Don't create a working tree if there is no HEAD in Repo.clone.

Changeset 06fbcb6ae8a6

Parent a3d94381e9ab

by Jelmer Vernooij

Changes to one file · Browse files at 06fbcb6ae8a6 Showing diff from parent a3d94381e9ab Diff from another changeset...

Change 1 of 1 Show Entire File dulwich/​repo.py Stacked
 
1387
1388
1389
1390
1391
1392
1393
1394
 
 
 
 
 
1395
1396
1397
 
1387
1388
1389
 
 
 
 
 
1390
1391
1392
1393
1394
1395
1396
1397
@@ -1387,11 +1387,11 @@
  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