-
Thanks for using OneDev. It is verified to be a bug. The editFile endpoint should allow files being created against empty repository. Will be addressed in next patch release.
-
OneDev
changed state to 'Closed' 4 years ago
Previous Value Current Value Open
Closed
-
OneDev
changed state to 'Released' 4 years ago
Previous Value Current Value Closed
Released
-
State changed as build #2755 is successful
-
Wow, a fix released in less than 24hours, you’re blazing fast - I’m impressed.
I can confirm everything works as expected now.
Thank you.
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Affected Versions |
Not Found
|
Issue Votes (0)
Hi, I'm new to OneDev but totally in love with it, great work, thank you!
Anyway, I'm making a script to auto-clone an existing external repo (for example on github) to my onedev instance via REST API.
After studying the documentation I did imagine this solution:
#Step 1 - create the project
#Step 2 - add the
.onedev-buildspec.ymlfile to the newly created project with aPullRepositorystepand here comes the troubles: the server complains because still no
master(or any other) branch exist in an empty project, so I thought to create it through the/api/repositories/{projectId}/branchesendpoint, but looking at the documentation a commit revision is mandatoryUnfortunately since the repository is still empty I don't have any revision to specify, so basically i'm stuck :D
What am I missing?