gpush/gpick: clear $curr_tree when creating new index


the former should represent the state of the latter. otherwise, we get
an unexpected failure when the first patch application with the new
index is based on the tree produced last with the previous index.

Change-Id: Ic37ea5286171ab6820439f7bcfab486903bbdcef
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commit6f3c0cc19ccbab807d299fc40663e096af22dd98
parent8d9b2e450d617ce8eb0ca84e99f9a126b5a59989
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
committerOswald Buddenhagen <oswald.buddenhagen@gmx.de>
commit timeTue, 9 Jan 2024 16:34:02 +0000