aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/xanzy/go-gitlab/project_import_export.go
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-07-14 15:53:31 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-07-23 17:18:04 +0200
commit1c23c736e9b2ad85fb69330f62dd9da9ceeba823 (patch)
treed56171b38bb760d86ab3bc06799f78dbe1a09758 /vendor/github.com/xanzy/go-gitlab/project_import_export.go
parent612264a00f352a12620bab3c72cd0b11b304f5e2 (diff)
downloadgit-bug-1c23c736e9b2ad85fb69330f62dd9da9ceeba823.tar.gz
vendor: update github.com/xanzy/go-gitlab to version 0.19.0
Diffstat (limited to 'vendor/github.com/xanzy/go-gitlab/project_import_export.go')
-rw-r--r--vendor/github.com/xanzy/go-gitlab/project_import_export.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/xanzy/go-gitlab/project_import_export.go b/vendor/github.com/xanzy/go-gitlab/project_import_export.go
index a71d620b..839b187b 100644
--- a/vendor/github.com/xanzy/go-gitlab/project_import_export.go
+++ b/vendor/github.com/xanzy/go-gitlab/project_import_export.go
@@ -151,12 +151,12 @@ type ImportFileOptions struct {
OverrideParams *CreateProjectOptions `url:"override_params,omitempty" json:"override_params,omitempty"`
}
-// ImportProject import the project.
+// ImportFile import a file.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/api/project_import_export.html#import-a-file
-func (s *ProjectImportExportService) ImportProject(opt *ImportFileOptions, options ...OptionFunc) (*ImportStatus, *Response, error) {
- req, err := s.client.NewRequest("POST", "/projects/import", opt, options)
+func (s *ProjectImportExportService) ImportFile(opt *ImportFileOptions, options ...OptionFunc) (*ImportStatus, *Response, error) {
+ req, err := s.client.NewRequest("POST", "projects/import", opt, options)
if err != nil {
return nil, nil, err
}