Commit c589b2d
committed
Set default branch to main for clone creation
When creating a clone without specifying a branch, both the UI and API
now default to "main" branch instead of using the first available
branch or the snapshot's branch.
UI: Changed to prioritize "main" branch when selecting default.
API: Changed default from snapshot.Branch to branching.DefaultBranch.
Related: https://gitlab.com/postgres-ai/database-lab/-/issues/6621 parent ce0b87c commit c589b2d
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
175 | | - | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
0 commit comments