-
Previous Value Current Value Open
Closed
-
This is by design. OneDev build always runs against fixed commit. Runs "git fetch origin master" if you want to do something on branches.
-
There is no branch/tag retrieved by default to save time. So if you do something against branch/tag, it will show some errors unless you fetch them first. This is normal.
-
I filed an improvement request to switch repository to current branch instead of detached head: Issue #925
| Type |
Bug
|
| Priority |
Normal
|
| Assignee |
Issue Votes (0)
I was trying to perform some actions getting information from git repository only to realise that git repository during build is somewhat odd - it's in detached state (which is fine) but no branch nor tag is available. Running first
git fetchresolves the issue. At first I was thinking it was caused byShallow copybut no such option is set thus no shallow copy is performed (and git seems to think it's not shallow copied because throws an error when we include--unshallowingit fetch.Is it by design? Could it be made that git repository during build behaves like any normal git repository after clone?