mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-06-30 20:17:08 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
02dbb6d120 | |||
7542d664de | |||
0734600ce0 |
2
main.py
2
main.py
@ -15,7 +15,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
magic='--calling-python-from-/bin/sh--'
|
magic='--calling-python-from-/bin/sh--'
|
||||||
"""exec" python2.4 -E "$0" "$@" """#$magic"
|
"""exec" python -E "$0" "$@" """#$magic"
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import sys
|
import sys
|
||||||
if sys.argv[-1] == '#%s' % magic:
|
if sys.argv[-1] == '#%s' % magic:
|
||||||
|
10
project.py
10
project.py
@ -517,6 +517,9 @@ class Project(object):
|
|||||||
old_merge = self.bare_git.rev_parse('%s@{1}' % merge)
|
old_merge = self.bare_git.rev_parse('%s@{1}' % merge)
|
||||||
except GitError:
|
except GitError:
|
||||||
old_merge = merge
|
old_merge = merge
|
||||||
|
if old_merge == '0000000000000000000000000000000000000000' \
|
||||||
|
or old_merge == '':
|
||||||
|
old_merge = merge
|
||||||
else:
|
else:
|
||||||
# The upstream switched on us. Time to cross our fingers
|
# The upstream switched on us. Time to cross our fingers
|
||||||
# and pray that the old upstream also wasn't in the habit
|
# and pray that the old upstream also wasn't in the habit
|
||||||
@ -917,8 +920,11 @@ class Project(object):
|
|||||||
if out:
|
if out:
|
||||||
out = iter(out[:-1].split('\0'))
|
out = iter(out[:-1].split('\0'))
|
||||||
while out:
|
while out:
|
||||||
info = out.next()
|
try:
|
||||||
path = out.next()
|
info = out.next()
|
||||||
|
path = out.next()
|
||||||
|
except StopIteration:
|
||||||
|
break
|
||||||
|
|
||||||
class _Info(object):
|
class _Info(object):
|
||||||
def __init__(self, path, omode, nmode, oid, nid, state):
|
def __init__(self, path, omode, nmode, oid, nid, state):
|
||||||
|
4
repo
4
repo
@ -20,7 +20,7 @@ REPO_REV='stable'
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
magic='--calling-python-from-/bin/sh--'
|
magic='--calling-python-from-/bin/sh--'
|
||||||
"""exec" python2.4 -E "$0" "$@" """#$magic"
|
"""exec" python -E "$0" "$@" """#$magic"
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import sys
|
import sys
|
||||||
if sys.argv[-1] == '#%s' % magic:
|
if sys.argv[-1] == '#%s' % magic:
|
||||||
@ -28,7 +28,7 @@ if __name__ == '__main__':
|
|||||||
del magic
|
del magic
|
||||||
|
|
||||||
# increment this whenever we make important changes to this script
|
# 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
|
# increment this if the MAINTAINER_KEYS block is modified
|
||||||
KEYRING_VERSION = (1,0)
|
KEYRING_VERSION = (1,0)
|
||||||
|
Reference in New Issue
Block a user