mirror of
https://github.com/frej/fast-export.git
synced 2025-11-01 08:55:47 +01:00
Don't restore checkpoint count from cache
It doesn't make sense as each run of git-fast-import starts a new pack anyways. Signed-off-by: Rocco Rutte <pdmef@gmx.net>
This commit is contained in:
@@ -254,7 +254,7 @@ if __name__=='__main__':
|
||||
if _max<0:
|
||||
max=tip
|
||||
|
||||
c=int(state_cache.get('count',0))
|
||||
c=0
|
||||
last={}
|
||||
for rev in range(min,max):
|
||||
c=export_commit(ui,repo,rev,marks_cache,heads_cache,last,tip,c)
|
||||
@@ -262,6 +262,5 @@ if __name__=='__main__':
|
||||
c=export_tags(ui,repo,marks_cache,c)
|
||||
|
||||
state_cache['tip']=max
|
||||
state_cache['count']=c
|
||||
state_cache['repo']=repourl
|
||||
save_cache(tipfile,state_cache)
|
||||
|
||||
Reference in New Issue
Block a user