Get the hash algorithm for a repository
GET
/repos/{owner}/{repo}/hash-algorithm
Returns the hash algorithm used to store repository objects.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”owner
required
string
The account owner of the repository. The name is not case sensitive.
repo
required
string
The name of the repository without the .git extension. The name is not case sensitive.
Responses
Section titled “Responses”Response
Media typeapplication/json
Repository hash algorithm
Repository hash algorithm
object
hash_algorithm
required
The Git hash algorithm used by this repository.
string
Examples
Exampledefault
{ "hash_algorithm": "sha1"}Forbidden
Media typeapplication/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Media typeapplication/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}