Commit c33dc392 authored by Kirill Smelkov's avatar Kirill Smelkov

obj_recreate_from_commit: Re-create tag without spawning hash-object

Time for restoring kirr/slapos.git from lab.nexedi.com backup

before: 7.4s
after:  5.6s
parent 5b1cdca3
......@@ -315,7 +315,8 @@ func obj_recreate_from_commit(g *git.Repository, commit_sha1 Sha1) {
}
// re-create tag object
tag_sha1 := xgitSha1("hash-object", "-t", "tag", "-w", "--stdin", RunWith{stdin: obj_raw})
tag_sha1, err := WriteObject(g, Bytes(obj_raw), git.ObjectTag)
raiseif(err)
// the original tagged object should be already in repository, because we
// always attach it to encoding commit one way or another,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment