We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f831b3c commit 3aacda1Copy full SHA for 3aacda1
packages/hub/cli.ts
@@ -160,7 +160,7 @@ async function run() {
160
hubUrl,
161
} = parsedArgs;
162
163
- if (revision && (fromEmpty || fromRevision)) {
+ if (revision && revision !== "main") {
164
await createBranch({
165
branch: revision,
166
repo: repoType ? { type: repoType as "model" | "dataset" | "space", name: repoName } : repoName,
0 commit comments