Skip to content

Conversation

@thackeraaron
Copy link

After one check it threw './git-repo-watcher: line 115: cd: repo: Not a directory' as we are already in the directory. Added if statement on when we cd into the repo to only do it once.

After one check it threw './git-repo-watcher: line 115: cd: repo: Not a directory' as we are already in the directory. Added if statement on when we cd into the repo to only do it once.
@kolbasa
Copy link
Owner

kolbasa commented Dec 5, 2019

Thank you for your contribution. I'm sorry that I answer so late. I did not expect anyone to use the script. :)

The folder change is in case the custom hooks file changes the current path. However, I have not really considered relative paths. I will write some tests for it and look at your pull request. Thank you again. 👍

@kolbasa
Copy link
Owner

kolbasa commented Dec 12, 2019

The issue is fixed now. I added a test. The script accepts relative and absolute paths now. Thank you :)

@kolbasa kolbasa closed this Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants