Re: git stash problem with `port sync'
> Mostly likely because the global settings are under your home area, > whilst the checkout below is not. [...] > MacPorts automatically switches to the user owning the top-level > ports tree directory to run the 'git pull'. [...] Thanks for the tips. It now works again. Werner
Re: git stash problem with `port sync'
On 2018-09-15 12:49, Werner LEMBERG wrote: > after doing various network hacks, calling `port -d sync' now fails. > > ---> Updating the ports tree > Synchronizing local ports tree from file:///opt/macports/macports-ports > DEBUG: /opt/local/bin/git pull --rebase --autostash > DEBUG: system -W /opt/macports/macports-ports: /opt/local/bin/git pull > --rebase --autostash MacPorts automatically switches to the user owning the top-level ports tree directory to run the 'git pull'. Make sure this directory belongs to your user or apply the appropriate configuration to the owner (probably root?). Rainer
Re: git stash problem with `port sync'
Hi, Mostly likely because the global settings are under your home area, whilst the checkout below is not. Just go to /opt/macports/macports-ports and set the local settings for that area as well. Or, move your ports checkout to somewhere in your home area. Chris > On 15 Sep 2018, at 11:49 am, Werner LEMBERG wrote: > > > Folks, > > > after doing various network hacks, calling `port -d sync' now fails. > > ---> Updating the ports tree > Synchronizing local ports tree from file:///opt/macports/macports-ports > DEBUG: /opt/local/bin/git pull --rebase --autostash > DEBUG: system -W /opt/macports/macports-ports: /opt/local/bin/git pull > --rebase --autostash > > *** Please tell me who you are. > > Run > >git config --global user.email "y...@example.com" >git config --global user.name "Your Name" > > to set your account's default identity. > Omit --global to set the identity only in this repository. > > fatal: unable to auto-detect email address (got '...@...') > Cannot save the current index state > Cannot autostash > Command failed: /opt/local/bin/git pull --rebase --autostash > Exit code: 1 > > Note that I already have set user name and e-mail adress globally, but > the error persists. Manually calling `git stash' works also just fine. > > Any ideas how to solve this? > > >Werner smime.p7s Description: S/MIME cryptographic signature
git stash problem with `port sync'
Folks, after doing various network hacks, calling `port -d sync' now fails. ---> Updating the ports tree Synchronizing local ports tree from file:///opt/macports/macports-ports DEBUG: /opt/local/bin/git pull --rebase --autostash DEBUG: system -W /opt/macports/macports-ports: /opt/local/bin/git pull --rebase --autostash *** Please tell me who you are. Run git config --global user.email "y...@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: unable to auto-detect email address (got '...@...') Cannot save the current index state Cannot autostash Command failed: /opt/local/bin/git pull --rebase --autostash Exit code: 1 Note that I already have set user name and e-mail adress globally, but the error persists. Manually calling `git stash' works also just fine. Any ideas how to solve this? Werner