From 05d8377e3131af101f444e079347953587a2b0d6 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Tue, 12 Aug 2014 16:28:22 +0000 Subject: Yarns: misc fixes --- yarns/branches-workspaces.yarn | 4 ++-- yarns/implementations.yarn | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'yarns') diff --git a/yarns/branches-workspaces.yarn b/yarns/branches-workspaces.yarn index 96fbbd12..0753296b 100644 --- a/yarns/branches-workspaces.yarn +++ b/yarns/branches-workspaces.yarn @@ -168,8 +168,8 @@ branches checked out. Editing components ------------------ -`morph edit` can edit refs for a stratum only, or it can do that for -a chunk, and check out the chunk's repository. +`morph edit` can edit refs for a chunk, and check out the chunk's +repository. First of all, we verify that that when we create a system branch, all the refs are unchanged. diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn index 5b5b1724..f01432b7 100644 --- a/yarns/implementations.yarn +++ b/yarns/implementations.yarn @@ -444,7 +444,7 @@ Editing morphologies with `morph edit`. ls -l "$DATADIR/workspace/$MATCH_2" chunkdir="$(slashify_colons "$MATCH_1")" cd "$DATADIR/workspace/$MATCH_2/$chunkdir" - git branch | awk '$1 == "*" { print $2 }' > "$DATADIR/git-branch.actual" + git rev-parse --abbrev-ref HEAD > "$DATADIR/git-branch.actual" echo "$MATCH_2" > "$DATADIR/git-branch.wanted" diff -u "$DATADIR/git-branch.wanted" "$DATADIR/git-branch.actual" -- cgit v1.2.1