diff --git a/hggit/commands.py b/hggit/commands.py
index 74e72004de2f332b4d4c71e2a6eec26fb96b8e75_aGdnaXQvY29tbWFuZHMucHk=..50d441de4665e517975c576e1c220b0b22cef6d9_aGdnaXQvY29tbWFuZHMucHk= 100644
--- a/hggit/commands.py
+++ b/hggit/commands.py
@@ -40,7 +40,8 @@
     somehow, use this command to import those changes.
 
     '''
-    repo.githandler.import_commits(remote_name)
+    with repo.wlock():
+        repo.githandler.import_commits(remote_name)
 
 
 @eh.command(b'gexport')