Merge pull request #607 from EduardoCopat/blankspace-branchname

Validate blank spaces in branch names
This commit is contained in:
Lars Hvam 2017-02-11 10:37:12 +01:00 committed by GitHub
commit 982f0aec12

View File

@ -1255,6 +1255,9 @@ CLASS lcl_git_porcelain IMPLEMENTATION.
DATA: lt_objects TYPE ty_objects_tt, DATA: lt_objects TYPE ty_objects_tt,
lv_pack TYPE xstring. lv_pack TYPE xstring.
IF iv_name CS ' '.
lcx_exception=>raise( 'Branch name cannot contain blank spaces' ).
ENDIF.
* "client MUST send an empty packfile" * "client MUST send an empty packfile"
* https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt#L514 * https://github.com/git/git/blob/master/Documentation/technical/pack-protocol.txt#L514