stgit.el: Fix so "t u" and "t i" only operate on the current buffer
[stgit] / stg
diff --git a/stg b/stg
index 5682dd4..def843c 100755 (executable)
--- a/stg
+++ b/stg
@@ -39,4 +39,5 @@ if bin == 'bin' and prefix != sys.prefix:
 
 from stgit.main import main
 
-main()
+if __name__ == '__main__':
+    main()