Skip to content

Commit 3aacda1

Browse files
committed
fix uploading to new rev not from empty
1 parent f831b3c commit 3aacda1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/hub/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ async function run() {
160160
hubUrl,
161161
} = parsedArgs;
162162

163-
if (revision && (fromEmpty || fromRevision)) {
163+
if (revision && revision !== "main") {
164164
await createBranch({
165165
branch: revision,
166166
repo: repoType ? { type: repoType as "model" | "dataset" | "space", name: repoName } : repoName,

0 commit comments

Comments
 (0)