mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 23:28:39 +08:00
fix(git): Make git commit display detached HEAD correctly
This commit is contained in:
parent
dd10a37749
commit
73d0f5a90c
@ -99,7 +99,7 @@ export default {
|
|||||||
});
|
});
|
||||||
const commit_title = options.message.split('\n')[0];
|
const commit_title = options.message.split('\n')[0];
|
||||||
const short_hash = await shorten_hash({ fs, dir, gitdir, cache }, commit_hash);
|
const short_hash = await shorten_hash({ fs, dir, gitdir, cache }, commit_hash);
|
||||||
let output = `[${branch} ${short_hash}] ${commit_title}\n`;
|
let output = `[${branch ?? 'detached HEAD'} ${short_hash}] ${commit_title}\n`;
|
||||||
// TODO: --amend prints out the date of the original commit here, as:
|
// TODO: --amend prints out the date of the original commit here, as:
|
||||||
// ` Date: Fri May 17 15:45:47 2024 +0100`
|
// ` Date: Fri May 17 15:45:47 2024 +0100`
|
||||||
// TODO: Print out file change count, insertion count, and deletion count
|
// TODO: Print out file change count, insertion count, and deletion count
|
||||||
|
Loading…
Reference in New Issue
Block a user