Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions services/migrations/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ func (g *RepositoryDumper) CreateRepo(repo *base.Repository, opts base.MigrateOp
if err != nil {
return fmt.Errorf("Clone: %v", err)
}
if err := git.WriteCommitGraph(g.ctx, repoPath); err != nil {
return err
}

if opts.Wiki {
wikiPath := g.wikiPath()
Expand All @@ -179,6 +182,10 @@ func (g *RepositoryDumper) CreateRepo(repo *base.Repository, opts base.MigrateOp
if err := os.RemoveAll(wikiPath); err != nil {
return fmt.Errorf("Failed to remove %s: %v", wikiPath, err)
}
} else {
if err := git.WriteCommitGraph(g.ctx, wikiPath); err != nil {
return err
}
}
}
}
Expand Down