diff --git a/themes/scorphish/fish_prompt.fish b/themes/scorphish/fish_prompt.fish
index 3f8b1663153edfc627e0fd97a4b478e0b73d9976..892ed31715805f42262b7e402929a1d92f0b8ffe 100644
--- a/themes/scorphish/fish_prompt.fish
+++ b/themes/scorphish/fish_prompt.fish
@@ -34,8 +34,8 @@ function _git_ahead_count -a remote -a branch_name
 end
 
 function _git_dirty_remotes -a remote_color -a ahead_color
-  set current_branch (git rev-parse --abbrev-ref HEAD)
-  set current_ref (git rev-parse HEAD)
+  set current_branch (command git rev-parse --abbrev-ref HEAD ^/dev/null)
+  set current_ref (command git rev-parse HEAD ^/dev/null)
 
   for remote in (git remote)