- Jul 16, 2016
-
-
Jonas Gorski authored
Older git versions seem output the original argument to stdout if there is no upstream, presumably because they try to do things with it internally. This can be prevented by passing --verify to it, which should be safe on newer git versions. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
- Jul 14, 2016
-
-
Felix Fietkau authored
It may not be present when cloning a staging tree or another fork Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
- Jul 13, 2016
-
-
Jonas Gorski authored
The revision to hash conversion was missed when fixing up the script. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
Jonas Gorski authored
Instead of assuming master is the current branch and origin the right upstream, try to get both dynamically. If the current branch is not tracking any upstream, use the origin of the master branch. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
- Jul 09, 2016
-
-
Felix Fietkau authored
Strip leading whitespace from wc -l output Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
Jonas Gorski authored
This is not a valid option in older git version, used in e.g. RHEL6. Reported-by:
Steven Haigh <netwiz@crc.id.au> Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
Jonas Gorski authored
Change the revision output to r<upstream-revision>+<local commits> so it is easier to get the base revision (and see if there are local commits). Example: $ ./scripts/getver.sh r794+3 $ Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
Jonas Gorski authored
Add code allowing easy conversion between git commit ids and revisions. Example: $ ./scripts/getver.sh r792 $ ./scripts/getver.sh r123 b7fc892e $ ./scrpts/getver.sh b7fc892e r123 Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
Jonas Gorski authored
Use git rev-list --count to get the revision number. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com>
-
- Apr 29, 2016
-
-
John Crispin authored
343c3be4 accidentially removed the "r" Signed-off-by:
John Crispin <john@phrozen.org>
-
- Mar 24, 2016
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org>
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org>
-
- Apr 13, 2016
-
-
Vasilis Tsiligiannis authored
Path to the Git repository directory can be overriden by using the '$GIT_DIR' environment variable. This patch improves detection of Git repository by using 'git-rev-parse', which respects '$GIT_DIR' environment variable, instead of just checking the existence of '.git' directory. Signed-off-by:
Vasilis Tsiligiannis <acinonyx@openwrt.gr> SVN-Revision: 49165
-
- Feb 14, 2015
-
-
John Crispin authored
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
-
- Oct 26, 2011
-
-
Jo-Philipp Wich authored
SVN-Revision: 28604
-
- Oct 05, 2009
-
-
Nicolas Thill authored
getver: don't use "-r COMMITTED" arg which needs network access to the repository, use the "Last Changed Rev:" line instead SVN-Revision: 17864
-
- Sep 28, 2009
-
-
Nicolas Thill authored
getver: get svn rev from last commit so that we have consistent revision numbers between git and svn SVN-Revision: 17781
-
- Aug 28, 2009
-
-
Felix Fietkau authored
SVN-Revision: 17432
-
- Aug 24, 2008
-
-
Felix Fietkau authored
SVN-Revision: 12380
-
- Dec 30, 2007
-
-
Florian Fainelli authored
SVN-Revision: 10059
-
- Dec 13, 2007
-
-
Felix Fietkau authored
clean up openwrt version handling, use a separate script that is executed at the beginning of the build process, fix revision checking with git SVN-Revision: 9723
-