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 type application/json
Repository hash algorithm
Repository hash algorithm
object
hash_algorithm
required
The Git hash algorithm used by this repository.
string
Examples
Example default
{ "hash_algorithm": "sha1"}Forbidden
Media type application/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Media type application/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}