Skip to content

Commit 4b441d9

Browse files
authored
Fixed bug using a detached head (#71)
1 parent 06eeb51 commit 4b441d9

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
@@ -87,7 +87,7 @@ def handle(self, *app_labels, **options):
8787
if self.verbosity >= 2:
8888
self.stdout.write("Retrieving the current branch...")
8989

90-
current_branch = self.repo.active_branch.name
90+
current_branch = self.repo.head.name
9191

9292
if self.verbosity >= 2:
9393
self.stdout.write(

0 commit comments

Comments
 (0)