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.
2 parents 892531e + 86432de commit 85454c7Copy full SHA for 85454c7
command.php
@@ -96,6 +96,14 @@
96
}
97
98
99
+ if ( false !== stripos( $version, '-alpha' ) && is_dir( $path . '/.git' ) ) {
100
+ $response = WP_CLI::launch( "cd {$path}; git log --pretty=format:'%h' -n 1", false, true );
101
+ $maybe_hash = trim( $response->stdout );
102
+ if ( $maybe_hash && 7 === strlen( $maybe_hash ) ) {
103
+ $version .= '-' . $maybe_hash;
104
+ }
105
106
+
107
if ( is_null( $archive_file ) ) {
108
$archive_file = dirname( $path ) . '/' . $archive_base . $version;
109
if ( 'zip' === $assoc_args['format'] ) {
0 commit comments