We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7458bc0 commit 906d771Copy full SHA for 906d771
1 file changed
src/Phug/Split/Command/Dist.php
@@ -124,6 +124,10 @@ protected function distribute(Split $cli): bool
124
125
$branch = $branch[1];
126
127
+ if (substr($branch, 0, 18) === '(HEAD detached at ') {
128
+ $branch = trim(explode("\n", $this->git('describe --contains --all HEAD'))[0]);
129
+ }
130
+
131
foreach ($this->getPackages() as $package) {
132
$this->distributePackage($cli, $package, $branch);
133
}
0 commit comments