We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9300c1 commit 4e937e5Copy full SHA for 4e937e5
init-git.el
@@ -47,5 +47,18 @@
47
(ido-completing-read "git-svn command: " git-svn--available-commands nil t)))))
48
49
50
+;;----------------------------------------------------------------------------
51
+;; gist fixes
52
53
+
54
+;; If using a "password = !some command" in .gitconfig, we need to
55
+;; run the specified command to find the actual value
56
57
+(defadvice gh-config (after sanityinc/maybe-execute-bang (key) activate)
58
+ (when (and (string= key "password")
59
+ (string-prefix-p "!" ad-return-value))
60
+ (setq ad-return-value (shell-command-to-string (substring ad-return-value 1)))))
61
62
63
64
(provide 'init-git)
0 commit comments