Skip to content

Commit

Permalink
Amended note for why amend won't work
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmu committed Sep 11, 2024
1 parent a9e1dd6 commit b25f3ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/libraries/doltcore/sqle/database_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,8 @@ func (p *DoltDatabaseProvider) CreateCollatedDatabase(ctx *sql.Context, name str
// After making changes to the working set for the DB, create a new dolt commit so that any newly created
// branches have those changes
// TODO: it would be better if there weren't a commit for this database where these changes didn't exist, but
// we always create an empty commit as part of initializing a repo right now.
// we always create an empty commit as part of initializing a repo right now, and you cannot amend the initial
// commit
roots, ok := sess.GetRoots(ctx, name)
if !ok {
return fmt.Errorf("unable to get roots for database %s", name)
Expand Down

0 comments on commit b25f3ef

Please sign in to comment.