Skip to content

Commit 8ce8218

Browse files
author
Gauvain Pocentek
committed
ProjectFile: file_path is required for deletion
1 parent 0a1bb94 commit 8ce8218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ class ProjectFile(GitlabObject):
12261226
requiredCreateAttrs = ['file_path', 'branch_name', 'content',
12271227
'commit_message']
12281228
optionalCreateAttrs = ['encoding']
1229-
requiredDeleteAttrs = ['branch_name', 'commit_message']
1229+
requiredDeleteAttrs = ['branch_name', 'commit_message', 'file_path']
12301230
getListWhenNoId = False
12311231
shortPrintAttr = 'file_path'
12321232
getRequiresId = False

0 commit comments

Comments
 (0)