 If FROM-UPSTREAM is non-nil, fetch from the upstream remote
 instead, if one is configured. The FROM-UPSTREAM argument is not
 part of the VC API."
+  (unless (plist-member recipe :repo)
+    (cl-return-from straight-vc-git-fetch-from-remote t))
   (straight--with-plist recipe
       (upstream)
     (unless (and from-upstream (null upstream))

If FROM-UPSTREAM is non-nil, pull from the upstream remote,
unless no :upstream is configured, in which case do nothing. Else
pull from the primary remote."
  (straight--with-plist recipe
      (branch upstream)
    (unless (and from-upstream (null upstream))


(cl-defun straight-vc-git--validate-head-pushed (recipe)
  "Validate that in RECIPE's local repo, main branch is behind primary remote."
  (unless (plist-member recipe :repo)
    (cl-return-from straight-vc-git--validate-head-pushed t))
  (ignore
   (straight--with-plist recipe
       (local-repo branch)
