Skip to content

Commit

Permalink
Remove dirty tag on commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusx1211 committed Sep 26, 2024
1 parent e01e30a commit 161623e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import react from '@vitejs/plugin-react-swc'
import { execSync } from 'child_process';

const commitHash = execSync('git rev-parse --short HEAD').toString().trim()
const isDirty = execSync('git diff-index --quiet HEAD --; echo $?').toString().trim() !== '0'
const fullCommitHash = isDirty ? `${commitHash} (dirty)` : commitHash
const fullCommitHash = commitHash

export default defineConfig(({ mode }: { mode: string }) => ({
plugins: [react()],
Expand Down

0 comments on commit 161623e

Please sign in to comment.