How Do I delete repository using GITBlit ? What should be the serverUrl?

StackOverflow https://stackoverflow.com/questions/18755969

  •  28-06-2022
  •  | 
  •  

Domanda

I know when we create a repository we have to give the repo server URL as

baseUrl + "rpc?req=CREATE_REPOSITORY&name="+ repoName;

when we delete the repo is it

baseUrl + "rpc?req=DELETE_REPOSITORY&name="+ repoName;

È stato utile?

Soluzione

The DELETE_REPOSITORY request (for Gitblit <= v1.3.2) requires a JSON body (repository model) on the post. The name parameter is unused. You could probably define a really minimal body that only specified the repository name, but I haven't tested that.

{
"name": "libraries/xmlapache-renamed.git"
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top