diff options
author | John Crispin <john@openwrt.org> | 2015-02-14 20:48:37 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-02-14 20:48:37 +0000 |
commit | 59acb0b8f42cdde32943ed6906a9e2cefa849526 (patch) | |
tree | 62f9190c63f16361c7297d8df81910bc96ec798d /scripts/metadata.pl | |
parent | e07c4f21506e33c5467aafeb4dbd11d9ad87201b (diff) | |
download | mtk-20170518-59acb0b8f42cdde32943ed6906a9e2cefa849526.zip mtk-20170518-59acb0b8f42cdde32943ed6906a9e2cefa849526.tar.gz mtk-20170518-59acb0b8f42cdde32943ed6906a9e2cefa849526.tar.bz2 |
scripts: fix getver git dir check
Git internals are referenced by .git which isn't necessarily a
directory. It may also be a file that references the actual .git
directory using the gitdir directive.
If .git is assumed to be a directory the build will not be able to get
the correct version when openwrt is included as a git submodule because
when used as a submodule .git will actually be a file referencing to a
subdirectory in the parent's git dir.
When the correct version is not detected some image generation tools
will fail because the OpenWrt string will be 'OpenWrtunknown' which is
too long for some header formats.
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
SVN-Revision: 44452
Diffstat (limited to 'scripts/metadata.pl')
0 files changed, 0 insertions, 0 deletions