mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-02 13:03:01 +08:00
Validate blank spaces in branch names
This commit is contained in:
parent
6f9ea7e68b
commit
a0b16cdb7d
|
@ -1255,6 +1255,9 @@ CLASS lcl_git_porcelain IMPLEMENTATION.
|
|||
DATA: lt_objects TYPE ty_objects_tt,
|
||||
lv_pack TYPE xstring.
|
||||
|
||||
IF iv_name CS ' '.
|
||||
lcx_exception=>raise( 'Branch name cannot contain blank spaces' ).
|
||||
ENDIF.
|
||||
|
||||
* "client MUST send an empty packfile"
|
||||
* https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt#L514
|
||||
|
|
Loading…
Reference in New Issue
Block a user