Compare commits

..

2 Commits
v1.0 ... v1.0.1

Author SHA1 Message Date
7542d664de Remove the Python 2.4 dependency and use just 'python'
Many Linux distributions are including python2.5 by default, as
it is the latest stable release of the language.  Using python2.4
(and asking users to specifically install it) is just cruel and
unusual punishment.

Signed-off-by: Shawn O. Pearce <sop@google.com>
2008-10-21 07:12:42 -07:00
0734600ce0 Fix 'repo sync' when the remote reflog has only 1 entry
If the reflog for the upstream branch has only 1 entry in it, as
the branch has been updated only once, we can get back the 0{40}
object id from `git rev-parse upstream@{1}`, in which case we should
consider it to be the same as if upstream@{1} is not defined.

Signed-off-by: Shawn O. Pearce <sop@google.com>
2008-10-21 07:12:36 -07:00
3 changed files with 6 additions and 3 deletions

View File

@ -15,7 +15,7 @@
# limitations under the License.
magic='--calling-python-from-/bin/sh--'
"""exec" python2.4 -E "$0" "$@" """#$magic"
"""exec" python -E "$0" "$@" """#$magic"
if __name__ == '__main__':
import sys
if sys.argv[-1] == '#%s' % magic:

View File

@ -517,6 +517,9 @@ class Project(object):
old_merge = self.bare_git.rev_parse('%s@{1}' % merge)
except GitError:
old_merge = merge
if old_merge == '0000000000000000000000000000000000000000' \
or old_merge == '':
old_merge = merge
else:
# The upstream switched on us. Time to cross our fingers
# and pray that the old upstream also wasn't in the habit

4
repo
View File

@ -20,7 +20,7 @@ REPO_REV='stable'
# limitations under the License.
magic='--calling-python-from-/bin/sh--'
"""exec" python2.4 -E "$0" "$@" """#$magic"
"""exec" python -E "$0" "$@" """#$magic"
if __name__ == '__main__':
import sys
if sys.argv[-1] == '#%s' % magic:
@ -28,7 +28,7 @@ if __name__ == '__main__':
del magic
# increment this whenever we make important changes to this script
VERSION = (1, 4)
VERSION = (1, 5)
# increment this if the MAINTAINER_KEYS block is modified
KEYRING_VERSION = (1,0)