Skip to content

Commit 9d8883f

Browse files
authored
Update retrieving the current branch name (#141)
1 parent 8c96782 commit 9d8883f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migration_fixer/management/commands/makemigrations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def handle(self, *app_labels, **options):
104104
if self.verbosity >= 2:
105105
self.stdout.write("Retrieving the current branch...")
106106

107-
current_branch = self.repo.head.ref.name
107+
current_branch = self.repo.active_branch.name
108108

109109
if self.repo.is_dirty(): # pragma: no cover
110110
raise CommandError(

0 commit comments

Comments
 (0)