git: allow an empty refspec even when using version control

If no refspec was given just take the default we get after clone.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
This commit is contained in:
Henning Schild
2018-01-02 13:00:33 +01:00
committed by Daniel Wagner
parent 62cf4fb0eb
commit ce02354627
2 changed files with 8 additions and 2 deletions

View File

@@ -321,7 +321,9 @@ Configuration reference
are performed.
* ``refspec``: string [optional]
The refspec that should be used. Required if an ``url`` was specified.
The refspec that should be used. If ``url`` was specified bot no
``refspec`` the revision you get depends on the defaults of the version
control system used.
* ``path``: string [optional]
The path where the repository is stored.