Skip to content

Commit ea40318

Browse files
committed
Refs #21114: WIP: Check branch deduction
Signed-off-by: eduponz <eduardoponz@eprosima.com>
1 parent f77a99f commit ea40318

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ def get_git_branch():
101101

102102
# Invoke git to get the current branch which we use to get the theme
103103
try:
104+
p = subprocess.Popen(
105+
['git', 'branch', '-a', '--contains' 'HEAD'],
106+
stdout=subprocess.PIPE,
107+
cwd=path_to_here
108+
)
109+
print('*****************************************')
110+
print('Branches that contain HEAD:')
111+
print(p.communicate()[0].decode().rstrip())
112+
print('*****************************************')
113+
104114
p = subprocess.Popen(
105115
['git', 'rev-parse', '--abbrev-ref', 'HEAD'],
106116
stdout=subprocess.PIPE,

0 commit comments

Comments
 (0)