@jhorst11/wt 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/commands.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jhorst11/wt",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "🌳 Beautiful interactive git worktree manager",
5
5
  "type": "module",
6
6
  "bin": {
package/src/commands.js CHANGED
@@ -364,7 +364,7 @@ export async function createWorktreeFlow() {
364
364
  }
365
365
 
366
366
  // Run post-create hooks
367
- const hookCommands = repoConfig.hooks?.['post-create'];
367
+ const hookCommands = config.hooks?.['post-create'];
368
368
  if (hookCommands && hookCommands.length > 0) {
369
369
  spacer();
370
370
  const hookSpinner = ora({
@@ -372,7 +372,7 @@ export async function createWorktreeFlow() {
372
372
  color: 'magenta',
373
373
  }).start();
374
374
 
375
- const hookResults = runHooks('post-create', repoConfig, {
375
+ const hookResults = runHooks('post-create', config, {
376
376
  source: repoRoot,
377
377
  path: result.path,
378
378
  branch: branchName,