We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f2cc37 commit c396146Copy full SHA for c396146
2 files changed
stacker/tests/test_util.py
@@ -252,7 +252,7 @@ def test_SourceProcessor_helpers(self):
252
GitPackageSource({'uri': 'https://github.com/remind101/'
253
'stacker.git',
254
'branch': 'release-1.0'})),
255
- b'857b4834980e582874d70feef77bb064b60762d1'
+ '857b4834980e582874d70feef77bb064b60762d1'
256
)
257
self.assertEqual(
258
sp.determine_git_ref(
stacker/util.py
@@ -877,6 +877,8 @@ def determine_git_ref(self, config):
877
config['uri'],
878
self.determine_git_ls_remote_ref(config)
879
880
+ if sys.version_info[0] > 2 and isinstance(ref, bytes):
881
+ return ref.decode()
882
return ref
883
884
def sanitize_uri_path(self, uri):
0 commit comments