chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add "stg id" support for "{public}" ref
[stgit]
/
stgit
/
commands
/
publish.py
diff --git
a/stgit/commands/publish.py
b/stgit/commands/publish.py
index e4b1a8d6e7fc8ecd8ca300f1ffcf776752e1605b..401fbdfcc769f38cd948ec75252b1c32c882389b 100644
(file)
--- a/
stgit/commands/publish.py
+++ b/
stgit/commands/publish.py
@@
-82,9
+82,7
@@
def func(parser, options, args):
stack = repository.get_stack(options.branch)
if not args:
stack = repository.get_stack(options.branch)
if not args:
- public_ref = config.get('branch.%s.public' % stack.name)
- if not public_ref:
- public_ref = 'refs/heads/%s.public' % stack.name
+ public_ref = common.get_public_ref(stack.name)
elif len(args) == 1:
public_ref = args[0]
else:
elif len(args) == 1:
public_ref = args[0]
else: