Skip to content

Commit

Permalink
Merge pull request #1228 from venky333/fix/repository_files_get-file_…
Browse files Browse the repository at this point in the history
…meta_data

updated commit id with X-Gitlab-Commit-Id instead of X-Gitlab-Last-Co…
  • Loading branch information
svanharmelen authored Sep 23, 2021
2 parents 9baf238 + 6f24ece commit 144f431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (s *RepositoryFilesService) GetFileMetaData(pid interface{}, fileName strin

f := &File{
BlobID: resp.Header.Get("X-Gitlab-Blob-Id"),
CommitID: resp.Header.Get("X-Gitlab-Last-Commit-Id"),
CommitID: resp.Header.Get("X-Gitlab-Commit-Id"),
Encoding: resp.Header.Get("X-Gitlab-Encoding"),
FileName: resp.Header.Get("X-Gitlab-File-Name"),
FilePath: resp.Header.Get("X-Gitlab-File-Path"),
Expand Down

0 comments on commit 144f431

Please sign in to comment.