-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version.sh dont get version from git #25
Comments
Sorry, I can't reproduce your output, nor can I tell what your problem is. The current version.sh seems to work fine for me with bash and dash on Linux. When I remove the "!" it stops working (prints an empty revision). |
bash trace http://paste.ubuntu.com/1616791 archlinux 64bits |
I think I get it now. "test ! -d .git" checks whether there's a directory named .git - however, when making a new checkout of mpv-build.git, the mpv sub directory has a regular file named .git, not a directory. This seems to be a recent change in how git manages sub modules. Anyway, changing it to "test ! -e .git" should fix it. Removing "!" is not the correct solution. Please test whether this works:
|
Yes, that explains it all. Apply. Am 06.02.2013 um 16:45 schrieb wm4 notifications@github.com:
|
yes confirm change "-d" to "-e", the script version.sh get version properly greetings |
Pushed as 314a07e. |
need remove "!" in line 10
PD: yes, my bash is flaman XD
greetings
The text was updated successfully, but these errors were encountered: